From 647a2a23474ddbcdd18adf7fcbdddfd4fdf009df Mon Sep 17 00:00:00 2001 From: Willem Jiang Date: Wed, 15 Oct 2025 08:29:09 +0800 Subject: [PATCH] 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> --- web/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/tsconfig.json b/web/tsconfig.json index 1fd505b2..1cf0db6f 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -38,5 +38,5 @@ "**/*.js", ".next/types/**/*.ts" ], - "exclude": ["node_modules"] + "exclude": ["node_modules", "tests/**/*.test.ts"] }