fix: exclude test files from TypeScript type checking

Test files use .ts extensions in imports for Node's native test runner
compatibility, which conflicts with TypeScript's default behavior.
Excluding test files from tsconfig allows tests to run with Node while
maintaining strict type checking for the main codebase.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
Willem Jiang
2025-10-15 08:29:09 +08:00
committed by Willem Jiang
parent 58c1743ed5
commit 779de40f10

View File

@@ -38,5 +38,5 @@
"**/*.js",
".next/types/**/*.ts"
],
"exclude": ["node_modules"]
"exclude": ["node_modules", "tests/**/*.test.ts"]
}