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.
This commit is contained in:
max
2026-02-09 11:16:19 -08:00
committed by GitHub
parent ec55583bb7
commit ce71c7326c
2 changed files with 9 additions and 0 deletions

View File

@@ -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",

8
tsconfig.test.json Normal file
View File

@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": true
},
"include": ["src/**/*.test.ts", "extensions/**/*.test.ts"],
"exclude": ["node_modules", "dist"]
}