mirror of
https://github.com/vee1e/workorder-desk.git
synced 2026-09-01 09:50:13 +00:00
fix(test): run backend test files sequentially against a shared database
This commit is contained in:
parent
3cef79b9d4
commit
835ed20278
1 changed files with 3 additions and 0 deletions
|
|
@ -7,6 +7,9 @@ export default defineConfig({
|
|||
setupFiles: ['./tests/setup.ts'],
|
||||
testTimeout: 30000,
|
||||
hookTimeout: 60000,
|
||||
// Test files share one database (dropDatabase per test). Run them
|
||||
// sequentially so a real shared Mongo does not hit "database is being dropped".
|
||||
fileParallelism: false,
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
reporter: ['text', 'lcov'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue