Files
alibaba/vitest.config.ts
T

14 lines
416 B
TypeScript
Raw Normal View History

2026-08-27 16:12:37 +08:00
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'],
},
});