Exclude frontend files from Jest coverage collection
Frontend TypeScript files use DOM types and are tested separately from the Node.js backend tests. This prevents Jest coverage collection errors when it tries to analyze frontend files in a Node.js environment. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
1517ab7bee
commit
1d346bf9f2
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,8 @@ module.exports = {
|
|||
'!src/**/*.d.ts',
|
||||
'!src/swagger.ts', // Skip swagger spec file
|
||||
'!src/types/**/*', // Skip type definitions
|
||||
'!src/server.ts' // Skip main server as it's integration-focused
|
||||
'!src/server.ts', // Skip main server as it's integration-focused
|
||||
'!src/frontend/**/*' // Skip frontend files (use DOM types, tested separately)
|
||||
],
|
||||
coverageDirectory: 'coverage',
|
||||
coverageReporters: ['text', 'lcov', 'html'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue