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:
Claude Code 2025-07-07 20:32:21 -04:00
parent 1517ab7bee
commit 1d346bf9f2

View file

@ -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'],