import { defineConfig } from "vitest/config"; // Pure-logic unit tests only (cart/discount math, invoice tax-rate // grouping, bundle-contents string building) — no jsdom, no Next.js // server runtime, no Payload/DB. `node` environment is enough since none // of this touches the DOM. See each app/lib/**/__tests__ file for what's // covered and why. export default defineConfig({ test: { environment: "node", include: ["app/**/__tests__/**/*.test.ts"], }, });