mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 05:29:49 +08:00
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.
22 lines
652 B
JSON
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"]
|
|
}
|