BUPKIS
    Preparing search index...

    Interface ExpectItExecutorAsync<Subject>

    Interface for asynchronous executor functions created by expectAsync.it().

    ExpectItExecutorAsync functions are the async equivalent of ExpectItExecutor, designed for asynchronous assertion contexts. They return Promises and are marked with the same internal symbol for identification. These executors can be embedded within 'to satisfy' patterns for async validation scenarios.

    const isAsyncStringExecutor = expectAsync.it('to be a string');
    // isAsyncStringExecutor is an ExpectItExecutorAsync<z.ZodString>

    // Used within async satisfy patterns
    await expectAsync({ name: 'Alice' }, 'to satisfy', {
    name: isAsyncStringExecutor, // Async validation that name is a string
    });

    Type Parameters

    • Subject extends z.ZodType

      The Zod schema type that constrains the subject parameter