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

export default defineConfig({
  plugins: [svelte()],
  test: {
    globals: true,
    environment: 'jsdom',
    coverage: {
      provider: 'istanbul',
      reporter: ['text', 'lcovonly'],
      clean: false,
      include: ['src/lib/**/*.{js,ts,svelte}'],
      exclude: ['**/__tests__/**', '**/*.test.*', '**/*.spec.*', '**/locales/**', '**/mocks/**'],
    },
  },
});
