Skip to content
Merged
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
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
".next/dev/types/**/*.ts",
"**/*.mts"
],
"exclude": ["node_modules"]
"exclude": ["node_modules", "prisma/migrations", "tests", "**/*.test.ts", "**/*.test.tsx", "**/*spec.ts", "**/*spec.tsx"]

Choose a reason for hiding this comment

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

P2 Badge Fix spec glob so .spec files are excluded

The new exclusion patterns use **/*spec.ts and **/*spec.tsx, which only match filenames ending in spec.ts/spec.tsx without a preceding dot. Common test filenames like foo.spec.ts and foo.spec.tsx will still be included in the TypeScript program, so the intended “exclude tests” change won’t apply to those files and can leave test type errors in the build. If the goal is to exclude .spec.* tests, the glob should be **/*.spec.ts and **/*.spec.tsx.

Useful? React with 👍 / 👎.

}
Loading