@wpazderski/playwright-utils
    Preparing search index...
    toThrowErrorFromPromiseMatcher: (
        internalOptions: MatcherInternalOptions,
        received: unknown,
        expected?: unknown,
    ) => void = ...

    An alias for expect(value).toThrow([expected]).

    Usage

    expect(() => {
    throw new Error('Something bad');
    }).toThrowError();

    Type declaration

      • (
            internalOptions: MatcherInternalOptions,
            received: unknown,
            expected?: unknown,
        ): void
      • Parameters

        • internalOptions: MatcherInternalOptions

          Internal options that provide extra context for the matcher.

        • received: unknown

          Received value.

        • Optionalexpected: unknown

          Expected error message or error object.

        Returns void