Node TAP
    Preparing search index...

    Class that handles swapping out real modules for mocks as needed

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • parentFileName: string
      • fileName: string
      • mocks: { [k: string]: any } = {}

      Returns Mocker

    Properties

    module: MockedModule

    Methods

    • Get the mock at the specified identifier, or undefined if it's not mocked

      Parameters

      • id: string

      Returns any

    • returns true if the set of mocks includes the specified ID

      Parameters

      • id: string

      Returns boolean