BUPKIS
    Preparing search index...

    Variable functionRejectWithErrorSatisfyingAssertionConst

    functionRejectWithErrorSatisfyingAssertion: AssertionFunctionAsync<
        readonly [
            ZodCustom<
                (...args: unknown[] | readonly unknown[]) => unknown,
                (...args: unknown[] | readonly unknown[]) => unknown,
            >,
            readonly [
                "to reject with error satisfying",
                "to be rejected with error satisfying",
            ],
            ZodUnknown,
        ],
        (
            subject: (...args: unknown[] | readonly unknown[]) => unknown,
            param: unknown,
        ) => Promise<
            | { message: string; schema?: undefined; subject?: undefined }
            | {
                message?: undefined;
                schema: ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>;
                subject: {} | null;
            },
        >,
        readonly [
            ZodCustom<
                (...args: unknown[] | readonly unknown[]) => unknown,
                (...args: unknown[] | readonly unknown[]) => unknown,
            >,
            PhraseLiteralChoiceSlot<
                readonly [
                    "to reject with error satisfying",
                    "to be rejected with error satisfying",
                ],
            >,
            ZodUnknown,
        ],
    > = ...

    Assertion for testing if a function rejects with an error satisfying specific criteria.

    await expectAsync(
    () => Promise.reject(new Error('oops')),
    'to reject with error satisfying',
    'oops',
    ); // passes
    await expectAsync(
    () => Promise.reject(new Error('fail')),
    'to reject with error satisfying',
    /error/i,
    ); // passes
    await expectAsync(
    () => Promise.reject(new Error('oops')),
    'to reject with error satisfying',
    { message: 'oops' },
    ); // passes