/// import { configDefaults, defineConfig } from 'vitest/config'; import react from '@vitejs/plugin-react'; // Test config for the widget. Kept separate from vite.config.ts (the bundle build) // so the two concerns don't entangle. Reuses the React plugin for TSX. export default defineConfig( { plugins: [ react() ], test: { environment: 'jsdom', setupFiles: [ './vitest.setup.ts' ], exclude: [ ...configDefaults.exclude, 'e2e/**' ], }, } );