@wpazderski/playwright-utils
    Preparing search index...
    • Creates a matcher function for toThrow or toThrowError.

      Parameters

      • matcherName: "toThrow" | "toThrowError"

        The name of the matcher, either "toThrow" or "toThrowError".

      • OptionalfromPromise: boolean

        If true, the matcher will handle promises and check for errors thrown from promises.

      Returns (
          internalOptions: MatcherInternalOptions,
          received: unknown,
          expected?: unknown,
      ) => void

      A matcher function.