From 7754a778c68bf504e3c62b7421871832c07bd32e Mon Sep 17 00:00:00 2001 From: Ika Date: Thu, 21 Sep 2017 17:48:41 +0800 Subject: [PATCH] docs(restoreAllMocks): available in Jest 21.1.0+ (#4522) --- docs/en/JestObjectAPI.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/JestObjectAPI.md b/docs/en/JestObjectAPI.md index 22018e4dac39..792e8210ce4a 100644 --- a/docs/en/JestObjectAPI.md +++ b/docs/en/JestObjectAPI.md @@ -181,7 +181,7 @@ Resets the state of all mocks. Equivalent to calling `.mockReset()` on every moc Returns the `jest` object for chaining. ### `jest.restoreAllMocks()` -##### available in Jest **20.1.0+** +##### available in Jest **21.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. ### `jest.resetModules()`