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:
Achim Weimert
2018-02-23 16:34:17 +00:00
committed by GitHub
parent e4803bb977
commit 24b320d5a0

View File

@@ -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;
/**