import react from '@vitejs/plugin-react'; import { fileURLToPath } from 'node:url'; import { defineConfig } from 'vitest/config'; export default defineConfig({ plugins: [react()], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) }, }, test: { globals: true, environment: 'jsdom', setupFiles: ['./vitest.setup.ts'], css: true, coverage: { provider: 'v8', reporter: ['text', 'lcov'], }, }, });