@wpazderski/playwright-utils
    Preparing search index...

    Interface for asymmetric matchers.

    interface AsymmetricMatcher {
        asymmetricMatch: (other: unknown) => boolean;
        getExpectedType?: () => string;
        toAsymmetricMatcher?: () => string;
        toString: () => string;
    }

    Implemented by

    Index

    Properties

    asymmetricMatch: (other: unknown) => boolean

    Checks if the value matches.

    Type declaration

      • (other: unknown): boolean
      • Parameters

        • other: unknown

          The value to test.

        Returns boolean

        true if the value matches, otherwise false.

    getExpectedType?: () => string

    Returns the expected type of the asymmetric matcher.

    Type declaration

      • (): string
      • Returns string

        The expected type of the asymmetric matcher.

    toAsymmetricMatcher?: () => string

    Returns a string representation of the asymmetric matcher for use in error messages.

    Type declaration

      • (): string
      • Returns string

        A string representation of the asymmetric matcher for error messages.

    toString: () => string

    Returns a string representation of the asymmetric matcher.

    Type declaration

      • (): string
      • Returns string

        A string representation of the asymmetric matcher.