Files
dacli/vitest.config.ts
T

29 lines
799 B
TypeScript

/**
* vitest.config.ts
*/
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
include: [
'tests/unit/**/*.test.ts',
'tests/integration/**/*.spec.ts',
'tests/core/**/*.spec.ts',
'tests/commands/**/*.spec.ts',
'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',
},
},
})