/// import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import { resolve } from 'path'; import { fileURLToPath, URL } from 'node:url'; export default defineConfig({ plugins: [react()], resolve: { alias: { "@": fileURLToPath(new URL('./src', import.meta.url)), }, }, test: { globals: true, environment: 'jsdom', setupFiles: ['./src/test/setup.ts'], css: true, include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], }, });