Update setupTests.js

This commit is contained in:
Dan Abramov
2019-04-18 18:06:34 +01:00
committed by GitHub
parent 8c5794eab3
commit d0b5e3a7cb
+1
View File
@@ -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.