Testing · Senior · Question 40 of 75

How do you test Suspense with data loading in a component test?

Explanation

This checks both states the user sees without depending on how data fetching is implemented.

Further reading

Problem with a question

Testing · Senior · question 40

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