/** * Centralized Jest coverage configuration for monorepo */ module.exports = { projects: [ '/packages/*/jest.config.js', '/apps/*/jest.config.js', ], collectCoverage: true, coverageDirectory: '/coverage', coverageReporters: ['text', 'lcov', 'html', 'json-summary'], collectCoverageFrom: [ 'packages/**/src/**/*.{ts,tsx,js,jsx}', 'apps/**/src/**/*.{ts,tsx,js,jsx}', '!**/*.test.{ts,tsx,js,jsx}', '!**/*.spec.{ts,tsx,js,jsx}', '!**/__tests__/**', '!**/node_modules/**', '!**/dist/**', '!**/build/**', '!**/.next/**', ], coverageThresholds: { global: { branches: 80, functions: 80, lines: 80, statements: 80, }, }, };