Jest · Module
resolves
Jest's resolves matcher checks the fulfilled value of a promise. Return or await the assertion so Jest waits for it.
Last updated
Syntax
expect(promise).resolves.<matcher>(expected)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
expectrejectstoBeassertionsasyncawaitdone