From f7e31e16ba812ac913e61a7fae74d399fe3992aa Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Thu, 14 Mar 2024 11:13:26 +0000 Subject: [PATCH] test(ci): Remove code coverage logs on CI This makes parsing logs for errors etc. harder than it needs to be. --- jest/jest.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jest/jest.config.js b/jest/jest.config.js index 37a2ee48658b..6bb8d30df35e 100644 --- a/jest/jest.config.js +++ b/jest/jest.config.js @@ -19,4 +19,11 @@ module.exports = { __DEBUG_BUILD__: true, }, testPathIgnorePatterns: ['/build/', '/node_modules/'], + + // On CI, we do not need the pretty CLI output, as it makes logs harder to parse + ...(process.env.CI + ? { + coverageReporters: ['json', 'lcov', 'clover'], + } + : {}), };