Files

21 lines
694 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 test FILES serially: these suites share one real database, so running
// them in parallel let Cycle and Mortality overwrite each other's rows.
// `poolOptions.forks.singleFork` expressed this before Vitest 4 removed it,
// and its silent no-op is what reintroduced the conflicts.
pool: 'forks',
fileParallelism: false,
},
});