Files
DeepTutor/web/tsconfig.node-tests.json
Bingxi Zhao (Frank) ad01418bd3 fix(web): give the node-test program the ambient DOM declarations
tsconfig.node-tests.json included only tests/, while the app tsconfig
also includes types/**/*.d.ts. Nothing had noticed, because no node
test had ever pulled lib/chat-import/* into that program. The new
chat-import-codex spec does, and that code calls
FileSystemDirectoryHandle.values() — declared in
types/file-system-access.d.ts, not in the DOM lib at this TS version —
so the compile failed with TS2339 and took the whole CI job with it.

Test-harness config only; no product code. npm run test:node: 1122
passed, 0 failed.
2026-09-11 00:23:44 +08:00

22 lines
652 B
JSON

{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": false,
"outDir": "./dist/node-tests",
"rootDir": ".",
"baseUrl": ".",
"module": "commonjs",
"moduleResolution": "node",
"incremental": false,
"paths": {
"@/*": ["./*"]
}
},
// The ambient File System Access declarations live in types/ and are
// listed in the app tsconfig's include. This program needs them too:
// a test that imports lib/chat-import/* pulls in code calling
// FileSystemDirectoryHandle.values(), which the DOM lib alone does not
// declare at this TS version.
"include": ["tests/**/*.ts", "types/**/*.d.ts"]
}