// ── Vitest Config ────────────────────────────────────────────────── // Global test helpers enabled, Node environment, and @/ path alias // matching the Next.js tsconfig for seamless import resolution. import { defineConfig } from "vitest/config" import path from "path" export default defineConfig({ test: { globals: true, // describe/it/expect available without imports environment: "node", // no jsdom — all tests are backend/utility }, resolve: { alias: { "@": path.resolve(__dirname, "./src"), }, }, })