Testing · Senior · Question 37 of 75

How do you test a component inside an error boundary without noisy logs?

Explanation

Restore the spy afterwards so unexpected errors in other tests stay visible.

Further reading

Problem with a question

Testing · Senior · question 37

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