import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import path from 'node:path'; // eslint-disable-next-line @typescript-eslint/no-explicit-any export default defineConfig((_: any) => ({ plugins: [react()], resolve: { alias: { '@': path.resolve(__dirname, 'src'), }, }, server: { port: 3000, open: true, }, test: { globals: true, environment: 'jsdom', setupFiles: './src/setupTests.ts', include: ['src/**/*.test.{ts,tsx}'], pool: 'threads', testTimeout: 10000, env: { VITE_BASE_URL: '', VITE_API_BASE_URL: '/admin-api', VITE_MOCK_ENABLED: 'true', }, } }));