import path from 'path'; import react from '@vitejs/plugin-react'; import { defineConfig } from 'vitest/config'; export default defineConfig({ plugins: [react()], test: { include: ['**/__tests__/**/*.spec.ts', '**/__tests__/**/*.test.ts', '**/__tests__/**/*.spec.tsx', '**/__tests__/**/*.test.tsx'], exclude: ['**/node_modules/**'], environment: 'jsdom', setupFiles: ['./vitest.setup.ts'], globals: true, }, resolve: { alias: { '@': path.resolve(__dirname, '.'), }, }, });