How to hide React-Error-Boundary console errors in jest

Viewed 195

From the react docs on Error Boundaries:

React 16 prints all errors that occurred during rendering to the console in development, even if the application accidentally swallows them.

Due to the above I am getting loads of unnecessary console errors when running my tests. Is it possible to hide these in Jest, without mocking/spying on console.error?

0 Answers
Related