-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Fix bugs with mock/spy result tracking of recursive functions. #6381
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
dfeeeab
Fix bugs with mock/spy result tracking of recursive functions.
UselessPickles 495253b
Update CHANGELOG
UselessPickles 46ef216
Fix invalid type specification
UselessPickles 7de2a48
Finally figured out the flow type for "undefined"
UselessPickles fe9a05b
Revert unnecessary restructuring of unit tests
UselessPickles 714d9e9
Add more code comments
UselessPickles 2037127
Move CHANGELOG entry to "master" section
UselessPickles 6d9abbd
Fix prettier error
UselessPickles 78abee0
Merge branch 'master' into recursive_mock_results
UselessPickles 0e72d35
Convert "isThrow" boolean to "type" string enum.
UselessPickles 0bfd292
Update mock_serializer unit tests
UselessPickles 705af41
Add "BREAKING" indicator to changelog
UselessPickles c9779c8
Define a type alias for the type of MockFunctionResult.type
UselessPickles 55fddc1
Merge from master
UselessPickles ef24642
Merge branch 'master' into recursive_mock_results
UselessPickles e8f8756
Merge branch 'master' into recursive_mock_results
UselessPickles aa90f56
Re-introduce deprecated MockFunctionResult.isThrow
UselessPickles 9dff29c
Fix linting error
UselessPickles b1aff31
Merge from master
UselessPickles 715612c
Update mock_serializer tests to account for re-introduced `isThrow`
UselessPickles 9679583
Fix lint errors
UselessPickles c107c9b
Fix flow type
UselessPickles 803f93b
Fix flow type more correctly
UselessPickles 244f30c
Merge remote-tracking branch 'origin/master' into recursive_mock_results
rickhanlonii 57deef3
Rm breaking
rickhanlonii c2da0a5
Remove deprecated "isThrow" property
UselessPickles 2786a49
Merge branch 'recursive_mock_results' of https://github.com/UselessPi…
UselessPickles 42e7c42
Move changelog entry to the "master" section
UselessPickles 6ef2461
Merge branch 'master' into recursive_mock_results
UselessPickles c56a325
Fix CHANGELOG entry again (and mark it as BREAKING)
UselessPickles File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,7 @@ | |
- `[jest-config]` Use strings instead of `RegExp` instances in normalized configuration ([#7251](https://github.com/facebook/jest/pull/7251)) | ||
- `[jest-circus]` Make sure to display real duration even if time is mocked ([#7264](https://github.com/facebook/jest/pull/7264)) | ||
- `[expect]` Improves the failing message for `toStrictEqual` matcher. ([#7224](https://github.com/facebook/jest/pull/7224)) | ||
- `[jest-mock]` [**BREAKING**] Fix bugs with mock/spy result tracking of recursive functions ([#6381](https://github.com/facebook/jest/pull/6381) | ||
|
||
### Chore & Maintenance | ||
|
||
|
@@ -185,9 +186,6 @@ | |
### Fixes | ||
|
||
- `[jest-haste-map]` Optimize watchman crawler by using `glob` on initial query ([#6689](https://github.com/facebook/jest/pull/6689)) | ||
|
||
### Fixes | ||
|
||
- `[pretty-format]` Fix formatting of invalid Date objects ([#6635](https://github.com/facebook/jest/pull/6635)) | ||
|
||
## 23.4.0 | ||
|
@@ -348,7 +346,7 @@ | |
- `[jest-diff]` Support returning diff from oneline strings ([#6221](https://github.com/facebook/jest/pull/6221)) | ||
- `[expect]` Improve return matchers ([#6172](https://github.com/facebook/jest/pull/6172)) | ||
- `[jest-cli]` Overhaul watch plugin hooks names ([#6249](https://github.com/facebook/jest/pull/6249)) | ||
- `[jest-mock]` Include tracked call results in serialized mock ([#6244](https://github.com/facebook/jest/pull/6244)) | ||
- `[jest-mock]` [**BREAKING**] Include tracked call results in serialized mock ([#6244](https://github.com/facebook/jest/pull/6244)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Better late than never? |
||
|
||
### Fixes | ||
|
||
|
This file contains 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
This file contains 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
Oops, something went wrong.
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 comment was marked as outdated.
Sorry, something went wrong.