import { defineConfig } from 'vitest/config'; // Phase 1 test infrastructure config. // // `happy-dom` is the chosen DOM env because Plan 03's IndexedDB tests will // use happy-dom together with `fake-indexeddb/auto` (happy-dom does not ship // IndexedDB). RESEARCH § Validation Architecture explicitly calls for this. // // `passWithNoTests: false` enforces RESEARCH CI Pitfall B — a green CI run // must mean tests *ran*, not "no tests existed". export default defineConfig({ test: { environment: 'happy-dom', include: ['src/**/*.test.ts', 'src/**/*.test.tsx', 'scripts/**/*.test.mjs'], passWithNoTests: false, globals: false, }, });