• Creates a mock function. Optionally takes a mock implementation.

    Returns Mock

  • Creates a mock function. Optionally takes a mock implementation.

    Type Parameters

    • T
    • Y extends any[]
    • C = any

    Parameters

    • Optionalimplementation: (this: C, ...args: Y) => T

    Returns Mock<T, Y, C>