Skip to content
masterclass Buddy

Jest · Method

jest.resetAllMocks

jest.resetAllMocks() resets the state of all Jest mocks. It removes mock implementations but does not restore original implementations.

Last updated

Syntax

jest.resetAllMocks()

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • jest.clearAllMocks()
  • jest.restoreAllMocks()
  • jest.fn()
  • jest.spyOn()
  • resetMocks
  • --resetMocks

Source: The Jest Object. Checked 2026-11-03.