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.
SubscribeRelated
jest.deepUnmockjest.mockjest.dontMockjest.enableAutomock