// Shared vitest defaults for the monorepo.
// Caps the fork pool so test runs stay at low concurrency and keep the
// machine usable. Combined with `turbo --concurrency=2` in the root scripts,
// peak load is ~2 packages × 2 forks = 4 vitest processes (~25% of cores).
// Override per-run with e.g. `vitest --maxWorkers=8` when you want full speed.
export const sharedTestConfig = {
  poolOptions: {
    forks: { minForks: 1, maxForks: 2 },
  },
} as const
