import { defineConfig } from "vitest/config";

export default defineConfig({
  test: {
    include: ["test/**/*.test.ts"],
    // Integration tests share one DB; run files sequentially to avoid
    // concurrent truncate/insert races. Unit tests are fast either way.
    pool: "forks",
    fileParallelism: false,
    env: { NODE_ENV: "test" },
  },
});
