Skip to content
masterclass Buddy

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.

Subscribe
  • expect
  • rejects
  • toBe
  • assertions
  • async
  • await
  • done

Source: Testing Asynchronous Code · Jest. Checked 2026-11-03.