-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Revert "fix(expect): objectContaining
should recurse into sub-objects (#10508)"
#10766
Conversation
…stjs#10711)" This reverts commit f84a807.
…ts (jestjs#10508)" This reverts commit 9a07781.
@@ -9,7 +9,7 @@ | |||
- `[babel-plugin-jest-hoist]` Preserve order of hoisted mock nodes within containing block ([#10536](https://github.com/facebook/jest/pull/10536)) | |||
- `[babel-plugin-jest-hoist]` Hoist pure constants to support experimental JSX transform in hoisted mocks ([#10723](https://github.com/facebook/jest/pull/10723)) | |||
- `[babel-preset-jest]` Update `babel-preset-current-node-syntax` to support top level await ([#10747](https://github.com/facebook/jest/pull/10747)) | |||
- `[expect]` Stop modifying the sample in `expect.objectContaining()` ([#10711](https://github.com/facebook/jest/pull/10711)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
never released, so I just removed it. Keeping the test, tho 👍
@@ -93,7 +93,14 @@ describe('caller option correctly merges from defaults and options', () => { | |||
|
|||
expect(loadPartialConfig).toHaveBeenCalledTimes(1); | |||
expect(loadPartialConfig).toHaveBeenCalledWith( | |||
expect.objectContaining({caller: {name: 'babel-jest', ...output}}), | |||
expect.objectContaining({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good example of the use case of expect.objectContaining
current behavior - I only care about a subset of the properties, but I care about all of their properties
should probably add a test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added here: cda33c9
(#10766)
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Fixes #10716
Test plan
Green CI. Kept some of the tests added later for the mutation regression