import react from '@vitejs/plugin-react'; import path from 'path'; import { defineConfig } from 'vitest/config'; export default defineConfig({ plugins: [react()], resolve: { alias: { '@': path.resolve(__dirname, '.'), }, }, test: { environment: 'jsdom', environmentOptions: { jsdom: { url: 'http://seg.local:3000', }, }, globals: true, setupFiles: './src/test/setup.tsx', include: ['src/**/*.{test,spec}.{ts,tsx}'], css: false, }, });