BUPKIS
    Preparing search index...

    Type Alias Expect<SyncAssertions, AsyncAssertions>

    The main synchronous assertion function.

    Contains properties in ExpectSyncProps.

    Type Parameters

    Type Declaration

    Properties of expect.

    • 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
              },
          >,
      >
    • use: UseFn<SyncAssertions, AsyncAssertions>

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

    expect