Skip to content
masterclass Buddy

Jest · Method

jest.unmock

jest.unmock(moduleName) tells Jest to use the real module instead of a mocked version. It is commonly used when a test is testing that module directly.

Last updated

Syntax

jest.unmock(moduleName)

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

Subscribe
  • jest.deepUnmock
  • jest.mock
  • jest.dontMock
  • jest.enableAutomock

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