From 745bd662663e649a3014db10f906f5e1bb7c22dc Mon Sep 17 00:00:00 2001 From: Schalli Date: Thu, 2 Jul 2026 09:59:35 +0200 Subject: [PATCH] fix(web): exclude test files from tsconfig to fix type-check Test matcher types (toBeInTheDocument etc.) from @testing-library/jest-dom were not globally visible to tsc because module augmentations from setup.ts don't propagate across unconnected files in the same compilation. Excluding test files from the main tsconfig is the standard Next.js + Vitest pattern. Co-Authored-By: Claude Sonnet 4.6 --- apps/web/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json index 7e8de20..609e39b 100644 --- a/apps/web/tsconfig.json +++ b/apps/web/tsconfig.json @@ -14,5 +14,5 @@ } }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "exclude": ["node_modules", "**/*.test.ts", "**/*.test.tsx", "**/*.spec.ts", "**/*.spec.tsx"] }