Type alias ExpectMatcherState

ExpectMatcherState: {
    isNot: boolean;
    promise: "rejects" | "resolves" | "";
    timeout: number;
    utils: ExpectMatcherUtils;
}

Type declaration

  • isNot: boolean

    Whether this matcher was called with the negated .not modifier.

  • promise: "rejects" | "resolves" | ""
    • 'rejects' if matcher was called with the promise .rejects modifier
    • 'resolves' if matcher was called with the promise .resolves modifier
    • '' if matcher was not called with a promise modifier
  • timeout: number

    Timeout in milliseconds for the assertion to be fulfilled.

  • utils: ExpectMatcherUtils

Generated using TypeDoc