vitest.config.jsโข844 B
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
testTimeout: 30000,
hookTimeout: 30000,
reporters: ['default', 'json', 'html'],
outputFile: {
json: './test-results/vitest-results.json',
html: './test-results/vitest-report.html'
},
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html', 'lcov'],
reportsDirectory: './coverage',
exclude: [
'node_modules/**',
'test/**',
'dist/**',
'**/*.test.js',
'**/*.spec.js',
'vitest.config.js'
],
thresholds: {
lines: 80,
functions: 80,
branches: 70,
statements: 80
}
},
poolOptions: {
threads: {
singleThread: true
}
}
}
});