Files
dashboard/backend/vitest.config.js
T
Alberto-Audrix 32a36cceff
CI / lint-and-test (push) Canceled after 0s
first commit
2026-07-28 08:55:05 +07:00

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,
},
},
},
});