mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-03 08:40:12 +00:00
Update jest.clearAllMocks() description
Update the description of `jest.clearAllMocks()` to the one from: https://facebook.github.io/jest/docs/en/jest-object.html#jestclearallmocks This also removes the `@deprecated` annotation which seems to have been invalid: The docs don't mention that this method is deprecated.
This commit is contained in:
3
types/jest/index.d.ts
vendored
3
types/jest/index.d.ts
vendored
@@ -56,7 +56,8 @@ declare namespace jest {
|
||||
*/
|
||||
function autoMockOn(): typeof jest;
|
||||
/**
|
||||
* @deprecated use resetAllMocks instead
|
||||
* Clears the mock.calls and mock.instances properties of all mocks.
|
||||
* Equivalent to calling .mockClear() on every mocked function.
|
||||
*/
|
||||
function clearAllMocks(): typeof jest;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user