@samitouri / QOS-React / commits / d0b5e3a7cb

Update setupTests.js

Dan Abramov committed Apr 18, 2019 at 18:06 UTC d0b5e3a7cb92ed20c23a6ffdea72a66a7ee177b6
1 file changed +1
src/__tests__/setupTests.js
+1
@@ -16,6 +16,7 @@ env.beforeEach(() => {
16 jest.useFakeTimers();
17
18 const originalConsoleError = console.error;
19 + // $FlowFixMe
20 console.error = (...args) => {
21 if (args[0] === 'Warning: React DevTools encountered an error: %s') {
22 // Rethrow errors from React.