-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Add contexts to mocks #12601
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
Add contexts to mocks #12601
Changes from 1 commit
bcee67c
70161ae
241bb04
68bd327
50c4719
afd4a82
39215f5
3784fe8
2b8de17
e8e2666
49d1ed1
d3d31b7
8c629cf
fd61630
fa3fb3e
9e2ec7a
245a3ac
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -560,7 +560,7 @@ test('plays audio', () => { | |
|
||
### `jest.clearAllMocks()` | ||
|
||
Clears the `mock.calls`, `mock.instances` and `mock.results` properties of all mocks. Equivalent to calling [`.mockClear()`](MockFunctionAPI.md#mockfnmockclear) on every mocked function. | ||
Clears the `mock.calls`, `mock.instances`, `mock.contexts` and `mock.results` properties of all mocks. Equivalent to calling [`.mockClear()`](MockFunctionAPI.md#mockfnmockclear) on every mocked function. | ||
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. You should work with files from 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. Understood, I'll update the changes. 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. Done |
||
|
||
Returns the `jest` object for chaining. | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.