From 779de40f106e9e2042ee47b1b7e9d481d35759d5 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 1fd505b..1cf0db6 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"] }