Loading

When testing an error boundary, your console will be filled with console.error calls from React. Those can be a real distraction from the rest of the output for your tests. Let’s clean those up with jest.spyOn.

Transcript

Hide console.error Logs when Testing Error Boundaries with jest.spyOn