Vitest · Method
vi.resetAllMocks
vi.resetAllMocks() clears call history and resets the implementation of every mock. It does not restore the original implementation of a spy.
Last updated
Syntax
function resetAllMocks(): VitestIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
vi.clearAllMocksvi.restoreAllMocksvi.spyOnmockReset