mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Update setupTests.js
This commit is contained in:
@@ -16,6 +16,7 @@ env.beforeEach(() => {
|
||||
jest.useFakeTimers();
|
||||
|
||||
const originalConsoleError = console.error;
|
||||
// $FlowFixMe
|
||||
console.error = (...args) => {
|
||||
if (args[0] === 'Warning: React DevTools encountered an error: %s') {
|
||||
// Rethrow errors from React.
|
||||
|
||||
Reference in New Issue
Block a user