diff --git a/biome.json b/biome.json index 3e016c71c9349c679ad310377906b57d8724baac..ebdd2d16f154a1b09cf08fb9e659a98f58c35d18 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 f9db9520d8161142b2f15497eca6374a843bac39..3af56de1af19917896fb7eadadb975f02a8642f8 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/', ], }