Skip to content

Commit

Permalink
update-coverage-config
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Jan 7, 2025
1 parent 32582be commit cb8563c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/config/src/jest/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ const createJestTSConfig = (
...(process.env.COVERAGE === 'true'
? {
collectCoverage: true,
coverageReporters: ['json'],
coverageReporters: ['json', 'text'],
collectCoverageFrom: [
'src/**/*.{js,jsx,ts,tsx}',
'!src/**/*.test.{js,jsx,ts,tsx}',
// Exclude test files "!src/**/index.{js,ts}",
// Exclude index files
'!src/**/__tests__/**',
'!src/**/test*/**',
'!**/e2e-tests/**',
],
coverageDirectory: '<rootDir>/coverage',
}
Expand Down

0 comments on commit cb8563c

Please sign in to comment.