import { fileURLToPath, URL } from 'node:url'; import react from '@vitejs/plugin-react'; import { defineConfig } from 'vitest/config'; export default defineConfig({ plugins: [react()], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)), }, }, test: { environment: 'jsdom', include: ['src/**/*.spec.{ts,tsx}'], coverage: { provider: 'v8', reporter: ['text', 'lcov', 'json-summary'], include: ['src/api/**/*.ts', 'src/stores/**/*.ts', 'src/navigation/**/*.ts'], exclude: ['src/api/generated/**', 'src/**/*.spec.{ts,tsx}'], thresholds: { lines: 70, functions: 70, statements: 70, branches: 60, }, }, }, });