Skip to content

Commit a76e4a2

Browse files
authored
test(ci): Remove code coverage logs on CI (#11094)
This makes parsing logs for errors etc. harder than it needs to be. I already added this for node integration tests, but IMHO it makes sense for all jest tests on CI.
1 parent 5ebb5b1 commit a76e4a2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jest/jest.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,11 @@ module.exports = {
1919
__DEBUG_BUILD__: true,
2020
},
2121
testPathIgnorePatterns: ['<rootDir>/build/', '<rootDir>/node_modules/'],
22+
23+
// On CI, we do not need the pretty CLI output, as it makes logs harder to parse
24+
...(process.env.CI
25+
? {
26+
coverageReporters: ['json', 'lcov', 'clover'],
27+
}
28+
: {}),
2229
};

0 commit comments

Comments
 (0)