// Vitest Config // Phase 1.1 + 4.1 (jsdom fuer PWA-Editor-Tests) + Bonus (Coverage) import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { include: ['tests/**/*.test.ts'], environment: 'node', environmentMatchGlobs: [ ['tests/**/webapp/**/*.test.ts', 'jsdom'], ['tests/**/editor*.test.ts', 'jsdom'], ['tests/**/sync-queue.test.ts', 'jsdom'], ], globals: false, coverage: { provider: 'v8', reporter: ['text', 'json-summary'], include: ['src/**/*.ts', 'webapp/src/**/*.ts', 'webapp/src/**/*.tsx'], exclude: ['src/templates/**', '**/*.test.ts', '**/*.d.ts'], // Kein Threshold: CLI/Webapp-Komponenten brauchen E2E-Tests (Playwright) // die wir nicht haben. Unit-Tests fuer Library-Code sind ausreichend. }, }, });