Files
fission-ai__openspec/vitest.config.ts

26 lines
586 B
TypeScript

import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
globalSetup: './vitest.setup.ts',
// Keep default pool settings; some tests rely on process.chdir,
// which is not supported in worker threads
include: ['test/**/*.test.ts'],
coverage: {
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/',
'dist/',
'bin/',
'*.config.ts',
'build.js',
'test/**'
]
},
testTimeout: 10000,
hookTimeout: 10000
}
});