Skip to content

Commit 61df418

Browse files
committed
test: add comments to console messages that are hidden
HCRC-178
1 parent 680482c commit 61df418

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

jest-setup.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ import { hideConsoleMessages } from './src/tests/hideConsoleMessages';
66

77
hideConsoleMessages({
88
warn: [
9+
// Apollo deprecation message is spammed in tests, just for future info. It's not useful in unit tests.
910
/`canonizeResults` is deprecated and will be removed in Apollo Client 4.0. Please remove this option./,
1011
],
11-
error: [/Could not parse CSS stylesheet/],
12+
error: [
13+
// CSS stylesheets are not ever parsed by JSDOM, so the message is useless.
14+
/Could not parse CSS stylesheet/,
15+
],
1216
});
1317

1418
fetchMock.enableMocks();

0 commit comments

Comments
 (0)