import { defineConfig } from 'vitest/config';

export default defineConfig({
  test: {
    include: ['tests/**/*.test.ts'],
    setupFiles: ['./tests/setup.ts'],
    // Each test file gets its own worker → its own globalThis → its own in-memory DB.
    pool: 'forks',
    poolOptions: { forks: { singleFork: false } },
  },
});
