22 lines
504 B
JavaScript
22 lines
504 B
JavaScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'html', 'json'],
|
|
exclude: ['node_modules/', 'database/migrations/', '**/*.test.js', '**/__tests__/**'],
|
|
},
|
|
testTimeout: 10000,
|
|
// Run tests serially to avoid database connection conflicts
|
|
pool: 'forks',
|
|
poolOptions: {
|
|
forks: {
|
|
singleFork: true,
|
|
},
|
|
},
|
|
},
|
|
});
|