-
-
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
Revert "fix(expect): objectContaining
should recurse into sub-objects (#10508)"
#10766
Changes from 6 commits
46b0838
e0e8406
6fbbd56
60201d5
58d9b43
34c710e
cda33c9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. good example of the use case of should probably add a test 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. added here: |
||
caller: { | ||
name: 'babel-jest', | ||
...output, | ||
supportsExportNamespaceFrom: false, | ||
supportsTopLevelAwait: false, | ||
}, | ||
}), | ||
); | ||
}); | ||
}); | ||
|
@@ -110,7 +117,9 @@ test('can pass null to createTransformer', () => { | |
caller: { | ||
name: 'babel-jest', | ||
supportsDynamicImport: false, | ||
supportsExportNamespaceFrom: false, | ||
supportsStaticESM: false, | ||
supportsTopLevelAwait: false, | ||
}, | ||
}), | ||
); | ||
|
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 👍