From 24b320d5a024bb503a99c88694e1769cba57c97f Mon Sep 17 00:00:00 2001 From: Achim Weimert Date: Fri, 23 Feb 2018 16:34:17 +0000 Subject: [PATCH] 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. --- types/jest/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index f83c386d09..e82da44d3c 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -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; /**