The scope associated with a mock dispatch.

Type Parameters

  • TData extends object = object

Constructors

Methods

Constructors

Methods

  • Persist the defined mock data for the associated reply. It will return the defined mock data indefinitely.

    Returns MockScope<TData>

  • Define a reply for a set amount of matching requests.

    Parameters

    • repeatTimes: number

    Returns MockScope<TData>