From 46b15dbec5f54c8cb16c6f513ee566bb766a2950 Mon Sep 17 00:00:00 2001 From: Mark Bennett Date: Mon, 9 Feb 2026 17:34:09 -0700 Subject: [PATCH] Include tests in TypeScript type-checking Fix issue where test files were excluded from TypeScript compilation, causing VS Code to catch type errors that npm run typecheck missed. Changes: - Add "tests/**/*" to include array in tsconfig.json - Remove "tests/**/*" from exclude array - Tests are now type-checked by both build and typecheck scripts - Tests are emitted to dist/tests/ (harmless locally, can exclude from npm publish later) This ensures type errors in tests are caught by: - npm run typecheck (local development) - npm run build (before commits) - CI pipeline (prevents broken tests from being merged) Co-Authored-By: Claude Sonnet 4.5 --- tsconfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 2cad54d..b66c7bd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,6 +19,6 @@ "noFallthroughCasesInSwitch": true, "allowSyntheticDefaultImports": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "src/lexicon/**", "tests/**/*"] + "include": ["src/**/*", "tests/**/*"], + "exclude": ["node_modules", "dist", "src/lexicon/**"] } -- 2.51.2