Skip to content

Commit f7e31e1

Browse files
committed
test(ci): Remove code coverage logs on CI
This makes parsing logs for errors etc. harder than it needs to be.
1 parent 780875f commit f7e31e1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jest/jest.config.js

Lines changed: 7 additions & 0 deletions
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)