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 b92b382 commit 352fd80Copy full SHA for 352fd80
test-utils.js
@@ -1,9 +1,15 @@
1
/* eslint-env jest */
2
3
export function muteConsole() {
4
- jest.spyOn(global.console, 'log').mockImplementation(() => {});
5
- jest.spyOn(global.console, 'error').mockImplementation(() => {});
6
- jest.spyOn(global.console, 'warn').mockImplementation(() => {});
+ jest.spyOn(global.console, 'log').mockImplementation(() => {
+ // Intentionally empty
+ });
7
+ jest.spyOn(global.console, 'error').mockImplementation(() => {
8
9
10
+ jest.spyOn(global.console, 'warn').mockImplementation(() => {
11
12
13
}
14
15
export function restoreConsole() {
0 commit comments