• Wraps types of the source object and its deep members with type definitions of Jest mock function. Pass {shallow: true} option to disable the deeply mocked behavior.

    Type Parameters

    • T

    Parameters

    • source: T
    • Optionaloptions: { shallow: false }

    Returns MaybeMockedDeep<T>

  • Wraps types of the source object with type definitions of Jest mock function.

    Type Parameters

    • T

    Parameters

    • source: T
    • options: { shallow: true }

    Returns MaybeMocked<T>