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'], }, });