/** * earth-now.co * Author: Simon-Pierre Boucher * Contact: contact@spboucher.ai * File: apps/web/vitest.config.ts * Purpose: Vitest configuration for apps/web — node environment by default (jsdom via per-file pragma), excludes .next build output */ import { defineConfig } from "vitest/config"; import { fileURLToPath } from "node:url"; export default defineConfig({ resolve: { alias: { "@": fileURLToPath(new URL(".", import.meta.url)), }, }, test: { environment: "node", include: ["test/**/*.test.ts"], exclude: ["**/node_modules/**", "**/.next/**", "**/dist/**"], }, });