Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ export default defineConfig({
'main/src/csp.ts',
'main/src/logger.ts',
'main/src/headers.ts',
// Generated files
'**/*.gen.ts',
'**/*.gen.tsx',
'renderer/src/route-tree.gen.ts',
// shadcn/ui components (generated, not project-specific)
'renderer/src/common/components/ui/**',
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Narrow the UI coverage exclusion to generated shadcn files

This blanket exclude hides coverage for every component in renderer/src/common/components/ui, but that directory also contains project-specific code such as file-picker-input.tsx, loading-state-alert.tsx, input-search.tsx, and circular-status-icon.tsx, not just copied shadcn primitives. In coverage runs, bugs or untested branches in those local components will no longer be reflected at all, which makes the coverage report less accurate than before; please exclude only the actual generated shadcn primitives or move custom components out of this excluded path.

Useful? React with 👍 / 👎.

Comment on lines +56 to +57
],
},
},
Expand Down