Skip to content

Commit

Permalink
docs: fix a mistake introduced in #13870 (#13872)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazauskas committed Feb 8, 2023
1 parent ef79423 commit ca8acf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/MockFunctionAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Clears all information stored in the [`mockFn.mock.calls`](#mockfnmockcalls), [`

The [`clearMocks`](configuration#clearmocks-boolean) configuration option is available to clear mocks automatically before each tests.

:::info
:::warning

Beware that `mockFn.mockClear()` will replace `mockFn.mock`, not just reset the values of its properties! You should, therefore, avoid assigning `mockFn.mock` to other variables, temporary or not, to make sure you don't access stale data.

Expand Down

0 comments on commit ca8acf7

Please sign in to comment.