Type Alias PromiseAssertions<T>

PromiseAssertions: Pick<
    Assertions<
        T,
        Pick<NotAssertions<T>, "toBe" | "toBeOfType" | "toReject">,
    >,
    "not" | "toBe" | "toBeOfType" | "toReject" | "toResolve",
>

Assertions for promises

Type Parameters

  • T extends Promise<unknown>