Vitest · Method
vi.restoreAllMocks
Restores the original implementations of all spies created with vi.spyOn. It does not clear their call history or reset their mock implementations.
Last updated
Syntax
function restoreAllMocks(): VitestIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
vi.spyOnvi.clearAllMocksvi.resetAllMockstest.restoreMocksafterEach