MCPcopy
hub / github.com/jestjs/jest / requireActual

Method requireActual

packages/jest-environment/src/index.ts:274–274  ·  view source on GitHub ↗

* Returns the actual module instead of a mock, bypassing all checks on * whether the module should receive a mock implementation or not. * * @example * ```js * jest.mock('../myModule', () => { * // Require the original module to not be mocked... * const originalModule = jest

(moduleName: string)

Source from the content-addressed store, hash-verified

272 * ```
273 */
274 requireActual<T = unknown>(moduleName: string): T;
275 /**
276 * Returns a mock module instead of the actual module, bypassing all checks
277 * on whether the module should be required normally or not.

Calls

no outgoing calls

Tested by

no test coverage detected