tracker: testing local coverage reports
This commit is contained in:
parent
6160725cb1
commit
2b052a8be6
1 changed files with 12 additions and 1 deletions
|
|
@ -4,6 +4,17 @@ const config = {
|
|||
testEnvironment: 'jsdom',
|
||||
collectCoverage: true,
|
||||
collectCoverageFrom: ['src/**/*.ts', '!src/**/*.d.ts'],
|
||||
// Add more detailed coverage reporters for PR comments
|
||||
coverageReporters: ['text', 'lcov', 'html', 'json-summary'],
|
||||
// Optional: Add coverage thresholds if desired
|
||||
coverageThreshold: {
|
||||
global: {
|
||||
branches: 70,
|
||||
functions: 75,
|
||||
lines: 80,
|
||||
statements: 80
|
||||
}
|
||||
},
|
||||
// .js file extension fix
|
||||
moduleNameMapper: {
|
||||
'(.+)\\.js': '$1',
|
||||
|
|
@ -18,4 +29,4 @@ const config = {
|
|||
},
|
||||
}
|
||||
|
||||
export default config
|
||||
export default config
|
||||
Loading…
Add table
Reference in a new issue