插件
This commit is contained in:
@@ -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'],
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user