Jest · Method
jest.requireActual
jest.requireActual loads a module's real implementation even when Jest has mocked that module. Use it to keep selected exports real while testing other mocked functions.
Last updated
Syntax
jest.requireActual(moduleName)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
jest.mocknode-fetchResponse