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

export default defineConfig({
    plugins: [vue()],
    test: {
        include: [
            'tests/unit/**/*.{test,spec}.js',
            'tests/integration/**/*.{test,spec}.js',
            'tests/component/**/*.{test,spec}.js',
            'tests/stress/**/*.{test,spec}.js',
        ],
        globals: true,
        environment: 'node',
        environmentMatchGlobs: [
            ['tests/component/**', 'happy-dom'],
        ],
    },
})
