import { defineConfig } from "vitest/config"; import path from "path"; // Mirrors tsconfig.json's "@/*" -> "./*" path alias so tests/p0/*.test.ts's // "@/src/..." imports resolve the same way they do for `next build`/tsc. export default defineConfig({ test: { include: ["tests/**/*.test.ts"], environment: "node", }, resolve: { alias: { "@": path.resolve(__dirname, "."), }, }, });