Type alias Expect<ExtendedMatchers>

Expect<ExtendedMatchers>: {
    configure: ((configuration) => Expect<ExtendedMatchers>);
    not: Omit<AsymmetricMatchers, "any" | "anything">;
    poll: (<T>(actual, messageOrOptions?) => BaseMatchers<Promise<void>, T> & {
        not: BaseMatchers<Promise<void>, T>;
    });
    soft: (<T>(actual, messageOrOptions?) => MakeMatchers<void, T, ExtendedMatchers>);
    extend<MoreMatchers>(matchers) => Expect<ExtendedMatchers & MoreMatchers>;
    getState() => ExpectMatcherState;
    <T>(actual, messageOrOptions?): MakeMatchers<void, T, ExtendedMatchers>;
} & AsymmetricMatchers

Type Parameters

  • ExtendedMatchers = {}

Type declaration

    • <T>(actual, messageOrOptions?): MakeMatchers<void, T, ExtendedMatchers>
    • Type Parameters

      • T = unknown

      Parameters

      • actual: T
      • Optional messageOrOptions: string | {
            message?: string;
        }
        Optional

      Returns MakeMatchers<void, T, ExtendedMatchers>

  • configure: ((configuration) => Expect<ExtendedMatchers>)
      • (configuration): Expect<ExtendedMatchers>
      • Parameters

        • configuration: {
              message?: string;
              soft?: boolean;
              timeout?: number;
          }
          • Optional message?: string
          • Optional soft?: boolean
          • Optional timeout?: number

        Returns Expect<ExtendedMatchers>

  • not: Omit<AsymmetricMatchers, "any" | "anything">
  • poll: (<T>(actual, messageOrOptions?) => BaseMatchers<Promise<void>, T> & {
        not: BaseMatchers<Promise<void>, T>;
    })
      • <T>(actual, messageOrOptions?): BaseMatchers<Promise<void>, T> & {
            not: BaseMatchers<Promise<void>, T>;
        }
      • Type Parameters

        • T = unknown

        Parameters

        • actual: (() => T | Promise<T>)
            • (): T | Promise<T>
            • Returns T | Promise<T>

        • Optional messageOrOptions: string | {
              intervals?: number[];
              message?: string;
              timeout?: number;
          }
          Optional

        Returns BaseMatchers<Promise<void>, T> & {
            not: BaseMatchers<Promise<void>, T>;
        }

  • soft: (<T>(actual, messageOrOptions?) => MakeMatchers<void, T, ExtendedMatchers>)
      • <T>(actual, messageOrOptions?): MakeMatchers<void, T, ExtendedMatchers>
      • Type Parameters

        • T = unknown

        Parameters

        • actual: T
        • Optional messageOrOptions: string | {
              message?: string;
          }
          Optional

        Returns MakeMatchers<void, T, ExtendedMatchers>

  • extend:function
    • Type Parameters

      Parameters

      • matchers: MoreMatchers

      Returns Expect<ExtendedMatchers & MoreMatchers>

  • getState:function

Generated using TypeDoc