BUPKIS
    Preparing search index...

    Variable functionThrowsTypeSatisfyingAssertionConst

    functionThrowsTypeSatisfyingAssertion: AssertionFunctionSync<
        readonly [
            ZodCustom<
                (...args: unknown[] | readonly unknown[]) => unknown,
                (...args: unknown[] | readonly unknown[]) => unknown,
            >,
            readonly ["to throw a", "to throw an"],
            ZodCustom<Constructor, Constructor>,
            "satisfying",
            ZodUnknown,
        ],
        (
            subject: (...args: unknown[] | readonly unknown[]) => unknown,
            ctor: Constructor,
            param: unknown,
        ) =>
            | { 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 throw a", "to throw an"]>,
            ZodCustom<Constructor, Constructor>,
            PhraseLiteralSlot<"satisfying">,
            ZodUnknown,
        ],
    > = ...

    Assertion for testing if a function throws an error of a specific type that also matches criteria.

    expect(
    () => {
    throw new TypeError('wrong type');
    },
    'to throw a',
    TypeError,
    'satisfying',
    { message: 'wrong type' },
    ); // passes
    expect(
    () => {
    throw new Error('oops');
    },
    'to throw an',
    TypeError,
    'satisfying',
    /type/,
    ); // fails