From 2290bd7c94686cb85f1e6ab11658143cef42f17f Mon Sep 17 00:00:00 2001 From: Stephanie Freitag <stephanie.freitag@holi.team> Date: Wed, 19 Mar 2025 20:54:27 +0100 Subject: [PATCH] NOISSUE: adjust coverage configuration and exclude from formatting --- biome.json | 3 ++- jest.config.cjs | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/biome.json b/biome.json index 3e016c71c9..ebdd2d16f1 100644 --- a/biome.json +++ b/biome.json @@ -22,7 +22,8 @@ "apps/storybook/storybook-static", "e2e/web/playwright-report", "**/*.json", - "**/__mocks__/**" + "**/__mocks__/**", + "coverage" ] }, "organizeImports": { "enabled": true }, diff --git a/jest.config.cjs b/jest.config.cjs index f9db9520d8..3af56de1af 100644 --- a/jest.config.cjs +++ b/jest.config.cjs @@ -27,7 +27,15 @@ 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', 'json', 'lcov'], + coverageReporters: ['text', 'lcov'], + collectCoverageFrom: [ + 'apps/**/*.{js,jsx,ts,tsx}', + 'core/**/*.{js,jsx,ts,tsx}', + 'holi-apps/**/*.{js,jsx,ts,tsx}', + 'holi-bricks/**/*.{js,jsx,ts,tsx}', + 'packages/**/*.{js,jsx,ts,tsx}', + '!**/*.config.{js,ts}', + ], coveragePathIgnorePatterns: [ '/node_modules/', '/__mocks__/', @@ -35,7 +43,10 @@ module.exports = { '/generated/', '/coverage/', '/assets/', - '/e2e/', '/test-utils/', + '/apps/web/pages/', + '/storybook/', + '/__stories__/', + '/.next/', ], } -- GitLab