Skip to content

Commit 05b4fdf

Browse files
committed
[tests] Fix test failures by disabling incremental TypeScript builds
TypeScript incremental builds cache compilation state in .tsbuildinfo files, which can become stale and cause test failures when files are modified by watchers or other build processes. Since tsconfig.json is only used for test builds (not development or production builds which use esbuild), there is no benefit to incremental compilation for tests. Changes: - Disable incremental in tsconfig.json (used for test:build-extension) - Disable incremental in src/webview/tsconfig.json (used for type-checking during test:build-webviews) This ensures clean, reproducible test builds without stale cache issues. Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com> Assisted-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent f8be3ea commit 05b4fdf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/webview/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"experimentalDecorators": true,
1616
"skipLibCheck": true,
1717
"esModuleInterop": true,
18-
"incremental": true,
18+
"incremental": false,
1919
"ignoreDeprecations": "6.0",
2020
"noImplicitAny": false,
2121
"strict": false,

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"useDefineForClassFields": false,
2525
"noImplicitOverride": false,
2626
"skipLibCheck": true,
27-
"incremental": true,
27+
"incremental": false,
2828
"allowSyntheticDefaultImports": true,
2929
"isolatedModules": true,
3030
"typeRoots": [ "./src/@types", "./node_modules/@types", "./out/extension" ],

0 commit comments

Comments
 (0)