BUPKIS
    Preparing search index...

    Interface ExpectSyncProps<SyncAssertions, AsyncAssertions>

    Properties of expect.

    interface ExpectSyncProps<
        SyncAssertions extends AnySyncAssertions,
        AsyncAssertions extends AnyAsyncAssertions,
    > {
        assertions: SyncAssertions;
        createAssertion: CreateAssertionFn;
        createAsyncAssertion: CreateAsyncAssertionFn;
        fail: FailFn;
        it: UnionToIntersection<
            TupleToUnion<
                {
                    [K in string
                    | number
                    | symbol]: SyncAssertions[K<K>] extends AnySyncAssertion
                        ? any[any]["parts"] extends AssertionParts
                            ? ExpectItFunction<any[any]["parts"]>
                            : never
                        : never
                },
            >,
        >;
        use: UseFn<SyncAssertions, AsyncAssertions>;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    assertions: SyncAssertions

    Tuple of all assertions available in this expect().

    createAssertion: CreateAssertionFn

    Creates a new synchronous assertion.

    createAsyncAssertion: CreateAsyncAssertionFn

    Creates a new asynchronous assertion.

    fail: FailFn

    Fails immediately with optional reason.

    Reason for failure

    it: UnionToIntersection<
        TupleToUnion<
            {
                [K in string
                | number
                | symbol]: SyncAssertions[K<K>] extends AnySyncAssertion
                    ? any[any]["parts"] extends AssertionParts
                        ? ExpectItFunction<any[any]["parts"]>
                        : never
                    : never
            },
        >,
    >

    Function to add more assertions to this expect(), returning a new expect() and expectAsync() pair with the combined assertions.