From beac87c8bd75af04d4679ecbb1a33d0ab9fe58fa Mon Sep 17 00:00:00 2001 From: Stephanie Freitag <stephanie.freitag@holi.team> Date: Wed, 19 Mar 2025 20:55:33 +0100 Subject: [PATCH] NOISSUE: adjust coverage extraction in ci --- .gitlab-ci.yml | 2 +- jest.config.cjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4c777e343a..7ce12e8cc6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -103,7 +103,7 @@ lint_compile_test: - git fetch origin $CI_COMMIT_BRANCH:$CI_COMMIT_BRANCH - yarn lint_all - yarn test:coverage - coverage: '/All files[^|]*|[^|]*\s+([\d\.]+)/' + coverage: '/^Statements\s*:\s*([^%]+)/' artifacts: name: 'unit test coverage report' expose_as: 'unit test coverage report' diff --git a/jest.config.cjs b/jest.config.cjs index 3af56de1af..25ffc2e71b 100644 --- a/jest.config.cjs +++ b/jest.config.cjs @@ -27,7 +27,7 @@ module.exports = { 'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|@sentry/react-native|native-base|react-native-svg|matrix-js-sdk|matrix-js-sdk/.*)', ], resetMocks: true, - coverageReporters: ['text', 'lcov'], + coverageReporters: ['text-summary', 'lcov'], collectCoverageFrom: [ 'apps/**/*.{js,jsx,ts,tsx}', 'core/**/*.{js,jsx,ts,tsx}', -- GitLab