import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
import path from 'path'

export default defineConfig({
    plugins: [react()],
    test: {
        environment: 'jsdom',
        exclude: ['node_modules', 'tests/e2e/**', 'tests/integration/**', 'dist'], // Exclude e2e and integration tests from vitest
        alias: {
            '@': path.resolve(__dirname, './src'),
        },
        setupFiles: ['./vitest.setup.ts'],
        coverage: {
            provider: 'v8',
        },
    },
    resolve: {
        alias: {
            '@': path.resolve(__dirname, './src'),
        },
    },
})
