import { defineConfig } from 'vitest/config'; import { svelte } from '@sveltejs/vite-plugin-svelte'; // Separate vitest config — the sveltekit() plugin forces SSR which // breaks jsdom-based component tests. Use the plain svelte() plugin. export default defineConfig({ plugins: [svelte({ hot: !process.env.VITEST })], test: { environment: 'jsdom', include: ['src/**/*.test.js'], }, });