chore(deps): update dependency jest-when to v3.7.0 #496
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.4.0
->3.7.0
2.7.3
->3.5.5
Release Notes
timkindberg/jest-when (jest-when)
v3.7.0
Compare Source
ce60dd5
(closes #108)v3.6.0
Compare Source
v3.5.2
Compare Source
v3.5.1
: Support @golevelup/ts-jest and jest-mock-extended proxiesCompare Source
781bfce
77cd461
97b3725
562a35a
v3.5.0
: Default Behavior MethodsCompare Source
New methods:
defaultReturnValue
defaultResolvedValue
defaultRejectedValue
defaultImplementation
Use them to set up a default behavior, which will serve as fallback if no matcher fits.
Previously you needed to use any of
mockReturnValue
,mockResolvedValue
,mockRejectedValue
, ormockImplementation
directly on the object before using calledWith to create a default fallback.One neat idea, and the reason I even did this work, is to set up a default implementation that throws an error if an improper call is made to the mock.
Commits:
67b7532
when(fn).mockReturnValue(z)
. You can now do:when(fn).calledWith(x).mockReturnValue(y).defaultReturnValue(z)
.77fe672
a6dc74d
v3.4.2
Compare Source
3a27d0b
v3.4.1
Compare Source
equals
util by grabbing it from theexpect
this arg. Temporary hack until core jest exposes this util officially.5a8cc93
See https://github.com/facebook/jest/issues/11867#issuecomment-934523457
Configuration
📅 Schedule: Branch creation - "every weekday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.