Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upate sinon for @sinonjs/fake-timers #53362

Merged
merged 1 commit into from
May 24, 2021

Conversation

sandersn
Copy link
Contributor

@sinonjs/fake-timers@7.1.0 has better types for setImmediate/clearImmediate -- previously they returned any, now they return an object type. Update the tests to show that the type is no longer compatible with the number that setTimeout returns.

@43081j you made the change to fake-timers' types, so you might be interested to know that they're now published and DT is updated to handle them.

@sinonjs/fake-timers@7.1.0 has better types for
setImmediate/clearImmediate -- previously they returned `any`, now they
return an object type. Update the tests to show that the type is no
longer compatible with the `number` that setTimeout returns.
@typescript-bot
Copy link
Contributor

typescript-bot commented May 24, 2021

@sandersn Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

Because this is a widely-used package, a DT maintainer will need to review it before it can be merged.

You can test the changes in this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • 🕐 Most recent commit is approved by a DT maintainer

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 53362,
  "author": "sandersn",
  "headCommitOid": "3ec4319fadd86dda783665dd49b9a42a25593f80",
  "lastPushDate": "2021-05-24T17:06:36.000Z",
  "lastActivityDate": "2021-05-24T17:07:28.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "sinon",
      "kind": "edit",
      "files": [
        {
          "path": "types/sinon/sinon-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "mrbigdog2u",
        "lumaxis",
        "nicojs",
        "43081j",
        "joshuakgoldberg",
        "gjednaszewski",
        "johnjesse",
        "alecf",
        "SimonSchick"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [],
  "mainBotCommentID": 847199614,
  "ciResult": "pass"
}

@typescript-bot
Copy link
Contributor

🔔 @MrBigDog2U @lumaxis @nicojs @43081j @JoshuaKGoldberg @gjednaszewski @johnjesse @alecf @SimonSchick — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@sandersn sandersn merged commit 88f227f into master May 24, 2021
@sandersn sandersn deleted the update-sinon-for-sinonjs-fake-timers branch May 24, 2021 17:20
@43081j
Copy link
Contributor

43081j commented May 24, 2021

Awesome, remember #52377 still exists too.

ill rebase it onto master when i can

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants