• Mocks a module with an auto-mocked version when it is being required.

    Type Parameters

    • T = unknown

    Parameters

    • moduleName: string
    • Optionalfactory: () => T
    • Optionaloptions: MockOptions

    Returns typeof jest