build(deps): update dependency jest-when to v4 - #772
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #772 +/- ##
=======================================
Coverage 69.64% 69.64%
=======================================
Files 11 11
Lines 313 313
Branches 58 58
=======================================
Hits 218 218
Misses 82 82
Partials 13 13 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
renovate
Bot
force-pushed
the
renovate/jest-when-4.x
branch
2 times, most recently
from
March 27, 2026 12:40
c8640cc to
ac5251c
Compare
renovate
Bot
force-pushed
the
renovate/jest-when-4.x
branch
from
April 16, 2026 11:08
ac5251c to
dc7d59b
Compare
renovate
Bot
force-pushed
the
renovate/jest-when-4.x
branch
from
April 27, 2026 01:45
dc7d59b to
4af05cd
Compare
renovate
Bot
force-pushed
the
renovate/jest-when-4.x
branch
2 times, most recently
from
May 18, 2026 10:07
64aaba0 to
cf45868
Compare
renovate
Bot
force-pushed
the
renovate/jest-when-4.x
branch
2 times, most recently
from
June 1, 2026 17:39
92fc977 to
a70b697
Compare
renovate
Bot
force-pushed
the
renovate/jest-when-4.x
branch
from
June 11, 2026 14:55
a70b697 to
fbdd03d
Compare
renovate
Bot
force-pushed
the
renovate/jest-when-4.x
branch
from
July 12, 2026 11:08
fbdd03d to
1d4a4ec
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.7.0→4.0.3Release Notes
timkindberg/jest-when (jest-when)
v4.0.3Compare Source
Fixes
.defaultImplementation()(and aliases.defaultReturnValue()/.defaultResolvedValue()/.defaultRejectedValue()) no longer silently drops prior bare.calledWith()/.calledWith(undefined, ...)registrations. Regression introduced in the v4 TypeScript port (#111) and fixed by restoring theNO_CALLED_WITH_YETsymbol sentinel. Thanks @rbnayax. (#115, #116)v4.0.2Compare Source
v4.0.1Compare Source
v4.0.0: 4.0.0Compare Source
Highlights
jest-whenis now authored in TypeScriptcalledWithinference, andvoid/Promise<void>casesWhat changed
Native TypeScript source
The library source has been migrated from JavaScript to TypeScript, with the public type contract now tested directly in the repo.
Stronger, more accurate typings
This release tightens a number of important typing behaviors:
calledWith/expectCalledWithpreserve argument tuple types againmockReturnValue/mockResolvedValue/ related methods track the mocked function's return type much more accuratelyvoid/Promise<void>cases allow omitted values correctlyjest-mock-extended-style mocked object methodsallArgs, and matcher cases are now covered by contract testsCompatibility guardrails
The repo now has:
compat/jest27workspaceThe full build, runtime tests, and type tests run in both environments. This was added specifically to avoid fixing newer Jest/mock ecosystems while regressing older supported ones.
Breaking changes
There are no intentional runtime API changes in this release.
Thanks
Thanks to @tlevesque-ueat for the repros, patience, and repeated validation while this got sorted out.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.