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<string>

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

    ExpectItExecutor for the synchronous equivalent

    Type Parameters

    • Subject

      The type that constrains the subject parameter

    Indexable

    • [key: symbol]: true