Comunica
    Preparing search index...

    Type Alias JestMatchersShape<TNonPromise, TPromise>

    JestMatchersShape: { rejects: AndNot<TPromise>; resolves: AndNot<TPromise> } & AndNot<
        TNonPromise,
    >

    Type Parameters

    • TNonPromise extends {} = {}
    • TPromise extends {} = {}

    Type declaration

    • rejects: AndNot<TPromise>

      Unwraps the reason of a rejected promise so any other matcher can be chained. If the promise is fulfilled the assertion fails.

    • resolves: AndNot<TPromise>

      Use resolves to unwrap the value of a fulfilled promise so any other matcher can be chained. If the promise is rejected the assertion fails.