import { defineConfig } from "vitest/config"; import react from "@vitejs/plugin-react"; // Web unit tests: pure formatters (no DOM) + the global hardware-scanner hook (needs a // document, so jsdom). Kept minimal — the booth/live-feed/modal flows are still verified // manually (Playwright); this pins the testable pure logic + the focus-independent scan. export default defineConfig({ plugins: [react()], test: { environment: "jsdom", include: ["src/**/*.test.{ts,tsx}"], }, });