Jest · Module
mockReset
mockFn.mockReset() clears a mock's recorded data and removes its implementation. Later calls return undefined until you provide a new implementation.
Last updated
Syntax
mockFn.mockReset()In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
mockFn.mockClear()mockFn.mockRestore()jest.resetAllMocks()resetMocks