import { svelte } from '@sveltejs/vite-plugin-svelte';
import { defineConfig } from 'vitest/config';

export default defineConfig({
	plugins: [svelte({ hot: !process.env.VITEST })],
	test: {
		coverage: {
			include: ['src/**/*.svelte']
		},
		include: ['tests/**/*.test.ts'],
		environment: 'jsdom',
		globals: true
	}
});