Skip to content
masterclass Buddy

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.

Subscribe
  • jest.mock
  • node-fetch
  • Response

Source: Bypassing module mocks. Checked 2026-11-03.