Skip to content

Commit 1b7091b

Browse files
arbrandesclaude
andcommitted
fix: exclude test files from webpack TypeScript checking
Exclude src/**/*.test.* and src/**/*.spec.* from tsconfig.json so webpack dev server doesn't type-check test files. Also narrow the site.config glob from site.config.*.tsx to site.config.dev.tsx to avoid including site.config.test.tsx. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 89f7fcb commit 1b7091b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tsconfig.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
"babel.config.js",
1515
"eslint.config.js",
1616
"jest.config.js",
17-
"site.config.*.tsx"
17+
"site.config.dev.tsx"
18+
],
19+
"exclude": [
20+
"src/**/*.test.*",
21+
"src/**/*.spec.*"
1822
]
1923
}

0 commit comments

Comments
 (0)