From ce71c7326ce159fe5322775a796194e509be2872 Mon Sep 17 00:00:00 2001 From: max <40643627+quotentiroler@users.noreply.github.com> Date: Mon, 9 Feb 2026 11:16:19 -0800 Subject: [PATCH] chore: add tsconfig.test.json for type-checking test files (#12828) Adds a separate tsconfig that includes only *.test.ts files (which the main tsconfig excludes). Available via 'pnpm tsgo:test' for incremental cleanup. Not yet wired into 'pnpm check' there are ~2.8k pre-existing errors in test files that need to be fixed incrementally first. --- package.json | 1 + tsconfig.test.json | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 tsconfig.test.json diff --git a/package.json b/package.json index 9c8007ddff..e3687d2923 100644 --- a/package.json +++ b/package.json @@ -98,6 +98,7 @@ "test:live": "OPENCLAW_LIVE_TEST=1 CLAWDBOT_LIVE_TEST=1 vitest run --config vitest.live.config.ts", "test:ui": "pnpm --dir ui test", "test:watch": "vitest", + "tsgo:test": "tsgo -p tsconfig.test.json", "tui": "node scripts/run-node.mjs tui", "tui:dev": "OPENCLAW_PROFILE=dev CLAWDBOT_PROFILE=dev node scripts/run-node.mjs --dev tui", "ui:build": "node scripts/ui.js build", diff --git a/tsconfig.test.json b/tsconfig.test.json new file mode 100644 index 0000000000..36a96a213d --- /dev/null +++ b/tsconfig.test.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "noEmit": true + }, + "include": ["src/**/*.test.ts", "extensions/**/*.test.ts"], + "exclude": ["node_modules", "dist"] +}