ci(dacli): enable vitest typecheck + narrow tests/scripts glob

This commit is contained in:
ssw committed 2026-07-16 16:51:01 +08:00
1 parent c16bd298a7
commit cb12ca08ca
2 files changed
+17 -1

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": true,
"skipLibCheck": true
},
"include": ["src/core/help.ts", "tests/core/**/*.spec.ts"]
}
+9 -1
View File
@@ -10,11 +10,19 @@ export default defineConfig({
'tests/integration/**/*.spec.ts',
'tests/core/**/*.spec.ts',
'tests/commands/**/*.spec.ts',
'tests/scripts/**/*',
'tests/scripts/**/*.spec.ts',
],
exclude: ['node_modules', 'tests/e2e/**'],
testTimeout: 60_000,
pool: 'forks',
poolOptions: { forks: { singleFork: true } },
typecheck: {
enabled: true,
// Narrow scope: only typecheck the DacliHelp interface test.
// Uses isolated tsconfig (tsconfig.test-core.json) to avoid
// surfacing 46 pre-existing type errors in src/commands/*.
include: ['tests/core/**/*.spec.ts'],
tsconfig: './tsconfig.test-core.json',
},
},
})