Skip to content

Commit

Permalink
docs(api): typo (#1441)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuma1989 committed Jun 6, 2022
1 parent d6b8591 commit d25a3f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/index.md
Expand Up @@ -1943,7 +1943,7 @@ Vitest provides utility functions to help you out through it's **vi** helper. Yo

- **Type:** `() => MockInstance`

Does what `mockRestore` does and restores inner implementation to the original function.
Does what `mockReset` does and restores inner implementation to the original function.

Note that restoring mock from `vi.fn()` will set implementation to an empty function that returns `undefined`. Restoring a `vi.fn(impl)` will restore implementation to `impl`.

Expand Down

0 comments on commit d25a3f2

Please sign in to comment.