fix: give each test worker its own SQLite database

Parallel Vitest workers were opening data/pichost.db together, so host-isolation failed with database is locked.
This commit is contained in:
O96u committed 2026-10-09 15:52:03 +08:00
1 parent 10baf9d489
commit 424bfd9090
3 files changed
+27 -2

No files matched your search

+3 -1
View File
@@ -3,6 +3,8 @@ import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
environment: 'node',
include: ['server/**/*.test.ts']
include: ['server/**/*.test.ts'],
pool: 'forks',
setupFiles: ['./server/test/setup.ts']
}
})