You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Performs the same actions as `mockReset` and restores the inner implementation to the original function.
218
+
* Returns current permanent mock implementation if there is one.
219
219
*
220
-
* Note that restoring a mock created with `vi.fn()` will set the implementation to an empty function that returns `undefined`. Restoring a mock created with `vi.fn(impl)` will restore the implementation to `impl`.
220
+
* If mock was created with `vi.fn`, it will consider passed down method as a mock implementation.
221
221
*
222
-
* To automatically call this method before each test, enable the [`restoreMocks`](https://vitest.dev/config/#restoremocks) setting in the configuration.
0 commit comments