This commit is contained in:
浅念
2026-08-27 16:12:37 +08:00
commit 7f4f3be8d8
35 changed files with 8388 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
testTimeout: 30000,
// Vitest 4: `test.poolOptions.forks.singleFork` was removed; run all test
// files in a single fork sequentially (maxWorkers=1) to keep fake-indexeddb
// in-memory state consistent across tests.
fileParallelism: false,
setupFiles: ['fake-indexeddb/auto'],
},
});