tracker: testing local coverage reports

This commit is contained in:
nick-delirium 2025-04-01 17:51:31 +02:00
parent 6160725cb1
commit 2b052a8be6
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0

View file

@ -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