diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4c777e343ad5385f23fc9c75e24abd1ddaad8ef9..7ce12e8cc602141b226c11a16676159cbcc87502 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 3af56de1af19917896fb7eadadb975f02a8642f8..25ffc2e71b5ecb778cf789c16d05d580500cac49 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}',