We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb7ddf7 commit e90e50eCopy full SHA for e90e50e
1 file changed
test/setup.js
@@ -4,3 +4,13 @@ import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
4
import '../src';
5
6
configure({ adapter: new Adapter() });
7
+
8
+// Suppress expected noise from React dev warnings and jsdom CSS parsing
9
+const originalConsoleError = console.error;
10
+console.error = (...args) => {
11
+ if (typeof args[0] === 'string' && (
12
+ args[0].startsWith('Warning:') ||
13
+ args[0].includes('Could not parse CSS stylesheet')
14
+ )) return;
15
+ originalConsoleError.call(console, ...args);
16
+};
0 commit comments