From 02323b53572137cb21a9ca1ae3cc92c63ea19aa7 Mon Sep 17 00:00:00 2001 From: firsttris Date: Wed, 20 Sep 2017 19:49:04 +0200 Subject: [PATCH] jest: added restoreAllMocks --- types/jest/index.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index d2b1865a6f..b436aaada7 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -62,8 +62,10 @@ declare namespace jest { function resetAllMocks(): typeof jest; /** * available in Jest 20.1.0+ - * Restores all mocks back to their original value. Equivalent to calling .mockRestore on every mocked function. - * Beware that jest.restoreAllMocks() only works when mock was created with jest.spyOn; other mocks will require you to manually restore them. + * Restores all mocks back to their original value. + * Equivalent to calling .mockRestore on every mocked function. + * Beware that jest.restoreAllMocks() only works when mock was created with + * jest.spyOn; other mocks will require you to manually restore them. */ function restoreAllMocks(): typeof jest; /**