import { defineConfig } from "vitest/config"; /** * Test-only config for now. * * The UI phase adds `vite.config.ts` for the build; until then nothing runs Vite * itself, and `www/` is still produced by `scripts/sync-www.sh` for the Phase 1 * APK. Keeping the two configs separate means starting the React build cannot * quietly break the wrapper that currently works. */ export default defineConfig({ test: { // Domain code is plain TypeScript with no DOM, so the default node // environment is enough. The UI phase adds jsdom if we test components. environment: "node", include: ["src/**/*.test.ts"], }, });