From d25a3f243ecc84c59eac5eacce02bad711074215 Mon Sep 17 00:00:00 2001 From: Kazuma Ebina Date: Mon, 6 Jun 2022 14:58:53 +0900 Subject: [PATCH] docs(api): typo (#1441) --- docs/api/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/index.md b/docs/api/index.md index 9cab1cfcba5e..0ecd1f0b184c 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -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`.