Skip to content

Commit

Permalink
docs(restoreAllMocks): available in Jest 21.1.0+ (#4522)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatyang authored and cpojer committed Sep 21, 2017
1 parent d706f20 commit 7754a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()`
Expand Down

0 comments on commit 7754a77

Please sign in to comment.