From d9e9d8169be33c8bcaa33b16f04700b1a43d2801 Mon Sep 17 00:00:00 2001 From: Brian Love Date: Mon, 31 Aug 2026 19:52:42 -0700 Subject: [PATCH] test(inspector): typecheck its own tests The last package whose `typecheck` compiled only `src/**`. Its 31 test files were never type-checked; they compile clean once in scope, so this is coverage with no fixes attached. `tsconfig.test.json` matches the one every other package now carries, and the lint script picks the new file up alongside the tsconfigs it already covers. With this, every workspace package that has tests type-checks them. Co-Authored-By: Claude Opus 5 --- packages/inspector/package.json | 6 +++--- packages/inspector/tsconfig.test.json | 11 +++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 packages/inspector/tsconfig.test.json diff --git a/packages/inspector/package.json b/packages/inspector/package.json index 3d1810cdd..04fd2d247 100644 --- a/packages/inspector/package.json +++ b/packages/inspector/package.json @@ -4,7 +4,7 @@ "private": false, "type": "module", "license": "MIT", - "description": "Dawn runtime inspector — browser UI for inspecting a Dawn app (memory panel).", + "description": "Dawn runtime inspector \u2014 browser UI for inspecting a Dawn app (memory panel).", "homepage": "https://github.com/cacheplane/dawnai/tree/main/packages/inspector#readme", "repository": { "type": "git", @@ -30,10 +30,10 @@ "scripts": { "build": "next build && node scripts/post-build.mjs", "dev": "next dev", - "lint": "biome check --config-path ../config-biome/biome.json package.json next.config.ts postcss.config.mjs vitest.config.ts vitest.components.config.ts vitest.e2e.config.ts src app scripts test e2e playwright.config.ts tsconfig.json tsconfig.e2e.json", + "lint": "biome check --config-path ../config-biome/biome.json package.json next.config.ts postcss.config.mjs vitest.config.ts vitest.components.config.ts vitest.e2e.config.ts src app scripts test e2e playwright.config.ts tsconfig.json tsconfig.e2e.json tsconfig.test.json", "test": "vitest --run --config vitest.config.ts --passWithNoTests", "test:e2e": "playwright test --config playwright.config.ts", - "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.e2e.json" + "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.e2e.json && tsc -p tsconfig.test.json" }, "dependencies": { "@dawn-ai/core": "workspace:*", diff --git a/packages/inspector/tsconfig.test.json b/packages/inspector/tsconfig.test.json new file mode 100644 index 000000000..074e6760b --- /dev/null +++ b/packages/inspector/tsconfig.test.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + "extends": "./tsconfig.json", + "compilerOptions": { + "allowImportingTsExtensions": true, + "noEmit": true, + "rootDir": ".", + "tsBuildInfoFile": "dist/tsconfig.test.tsbuildinfo" + }, + "include": ["src/**/*.ts", "src/**/*.tsx", "test/**/*.ts", "test/**/*.tsx"] +}