import { defineConfig } from 'vitest/config'; // Separate from vite.config.ts: SvelteKit warns about a `test` block there, and // `vite build`/`vite dev` must never pick up test-only config. Pure-logic tests // need no svelte/tailwind plugins — no DOM/jsdom this round. export default defineConfig({ test: { environment: 'node', include: ['src/**/*.test.ts'], exclude: ['**/node_modules/**', '**/*.svelte.test.ts'], restoreMocks: true, unstubEnvs: true } });