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 52540a1 commit 9eba9b8Copy full SHA for 9eba9b8
packages/jest-reporters/src/__tests__/coverage_reporter.test.js
@@ -17,6 +17,7 @@ jest
17
let libCoverage;
18
let libSourceMaps;
19
let CoverageReporter;
20
+let consoleError;
21
22
import path from 'path';
23
import mock from 'mock-fs';
@@ -40,11 +41,15 @@ beforeEach(() => {
40
41
'relative_path_file.js': '',
42
};
43
44
+ consoleError = console.error;
45
+ console.error = jest.fn();
46
+
47
mock(fileTree);
48
});
49
50
afterEach(() => {
51
mock.restore();
52
+ console.error = consoleError;
53
54
55
describe('onRunComplete', () => {
0 commit comments