import { defineConfig } from "vitest/config"; /** * Runner for the root scripts/ test suite (pnpm test:scripts). * * scripts/ is not a workspace package, so `turbo run test` never reaches * these files — this dedicated config wires them to a runner. The suite * runs in CI's validate job alongside the other root-level gates. * * Named vitest.scripts.config.mjs (not vitest.config.*) on purpose so a * bare `vitest` invocation at the repo root does not auto-discover it. */ export default defineConfig({ test: { environment: "node", include: ["scripts/**/*.test.mjs"], clearMocks: true, restoreMocks: true, // Several suites exec child node processes (work CLI, conformance // fixtures) — keep a generous per-test ceiling. testTimeout: 60_000, hookTimeout: 60_000, }, });