import { defineConfig } from "vitest/config"; import path from "node:path"; export default defineConfig({ esbuild: { jsx: "automatic", }, test: { environment: "node", include: ["src/**/*.test.ts", "src/**/*.test.tsx"], // Cypress lives under /cypress and uses its own runner; exclude it so the // two harnesses do not collide. exclude: ["node_modules", ".next", "cypress"], }, resolve: { alias: { "@": path.resolve(__dirname, "./src"), }, }, });