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
[jest] add types of jest.now
and withImplementation
#62451
[jest] add types of jest.now
and withImplementation
#62451
Conversation
@mrazauskas Thank you for submitting this PR! This is a live comment which I will keep updated. 1 package in this PRCode ReviewsBecause this is a widely-used package, a DT maintainer will need to review it before it can be merged. You can test the changes of this PR in the Playground. Status
All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 62451,
"author": "mrazauskas",
"headCommitOid": "945098b642792188e08a912bc15e820f46d584d8",
"mergeBaseOid": "2b7c710f4890784cd537c82bdcd2c03e98ec09db",
"lastPushDate": "2022-09-28T10:07:19.000Z",
"lastActivityDate": "2022-09-29T04:21:58.000Z",
"mergeOfferDate": "2022-09-28T20:09:20.000Z",
"mergeRequestDate": "2022-09-29T04:21:58.000Z",
"mergeRequestUser": "mrazauskas",
"hasMergeConflict": false,
"isFirstContribution": false,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Critical",
"pkgInfo": [
{
"name": "jest",
"kind": "edit",
"files": [
{
"path": "types/jest/index.d.ts",
"kind": "definition"
},
{
"path": "types/jest/jest-tests.ts",
"kind": "test"
}
],
"owners": [
"NoHomey",
"jwbay",
"asvetliakov",
"alexjoverm",
"epicallan",
"ikatyang",
"wsmd",
"JamieMason",
"douglasduteil",
"ahnpnl",
"UselessPickles",
"r3nya",
"hotell",
"sebald",
"andys8",
"antoinebrault",
"gstamac",
"ExE-Boss",
"quassnoi",
"Belco90",
"tonyhallett",
"ycmjason",
"pawfa",
"regevbr",
"gerkindev",
"domdomegg"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Critical"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "r3nya",
"date": "2022-09-29T04:20:18.000Z",
"isMaintainer": false
},
{
"type": "approved",
"reviewer": "gabritto",
"date": "2022-09-28T20:08:33.000Z",
"isMaintainer": true
}
],
"mainBotCommentID": 1260689445,
"ciResult": "pass"
} |
🔔 @NoHomey @jwbay @asvetliakov @alexjoverm @epicallan @ikatyang @wsmd @JamieMason @douglasduteil @ahnpnl @UselessPickles @r3nya @Hotell @sebald @andys8 @antoinebrault @gstamac @ExE-Boss @quassnoi @Belco90 @tonyhallett @ycmjason @pawfa @regevbr @GerkinDev @domdomegg — please review this PR in the next few days. Be sure to explicitly select |
@mrazauskas: Everything looks good here. I am ready to merge this PR (at 945098b) on your behalf whenever you think it's ready. If you'd like that to happen, please post a comment saying:
and I'll merge this PR almost instantly. Thanks for helping out! ❤️ (@NoHomey, @jwbay, @asvetliakov, @alexjoverm, @epicallan, @ikatyang, @wsmd, @JamieMason, @douglasduteil, @ahnpnl, @UselessPickles, @r3nya, @Hotell, @sebald, @andys8, @antoinebrault, @gstamac, @ExE-Boss, @quassnoi, @Belco90, @tonyhallett, @ycmjason, @pawfa, @regevbr, @GerkinDev, @domdomegg: you can do this too.) |
Ready to merge |
Please fill in this template.
npm test <package to test>
.If changing an existing definition:
jest.now()
was added in (jest-fake-timers): Addnow()
API to get the fake clock time jestjs/jest#13244; withImplementation was add in feat(@jest/mock): Add withImplementation jestjs/jest#13281Summary
Jest v29.1 shipped earlier today (release notes) with two new features:
jest.now
andwithImplementation
. This PR adds typings for these features.