Testing · Senior · Question 50 of 75

What does await expect(async () => { ... }).toPass() do?

Explanation

Useful for eventually-consistent flows, e.g. refreshing until an async job's result appears.

Further reading

Problem with a question

Testing · Senior · question 50

Test yourself

Take the Testing · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz