Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface NodeRequire

Hierarchy

Callable

  • __call(id: string): any
  • Parameters

    • id: string

    Returns any

Index

Properties

cache

extensions

extensions: RequireExtensions
deprecated

main

main: Module | undefined

resolve

Methods

requireActual

  • requireActual(moduleName: string): any
  • Returns the actual module instead of a mock, bypassing all checks on whether the module should receive a mock implementation or not.

    deprecated

    Use jest.requireActual instead.

    Parameters

    • moduleName: string

    Returns any

requireMock

  • requireMock(moduleName: string): any
  • Returns a mock module instead of the actual module, bypassing all checks on whether the module should be required normally or not.

    deprecated

    Use jest.requireMockinstead.

    Parameters

    • moduleName: string

    Returns any