import { defineConfig } from 'vitest/config'
import {alias} from "./tests/alias";

/**
 * @see https://vitest.dev/config/
 */
export default defineConfig({
    test: {
        globals: true,
        environment: 'jsdom',
        passWithNoTests: true,
        coverage: {
            enabled: true,
            include: [
                'components/**',
                'composables/**',
                'services/**',
            ],
            all: true,
            extension: ['.ts', '.vue'],
            reporter: ['html', 'json', 'text', 'cobertura']
        },
        reporters: ['default', 'junit'],
        outputFile: {
            junit: './coverage/junit.xml'
        }
    },
    resolve: {
        alias,
    }
})
