import { defineConfig } from "vitest/config"; // Unit tests for the pure helpers in src/lib — deliberately separate from vite.config.ts so the // production build never has to load vitest. Plain node env (no jsdom): these tests stub the // modules that touch the DOM. Browser flows stay in e2e/ under Playwright (`siftlode e2e`). // Being its own file means vite.config.ts is NOT merged in — a future test that renders a .tsx // component has to wire @vitejs/plugin-react (and a DOM environment) here itself. export default defineConfig({ test: { include: ["src/**/*.test.ts"], environment: "node", }, });