import { defineConfig } from 'vitest/config'; import path from 'path'; export default defineConfig({ test: { globals: true, environment: 'node', setupFiles: ['./tests/setup/global-setup.ts'], coverage: { provider: 'v8', reporter: ['text', 'json', 'html', 'lcov'], exclude: [ 'node_modules/', 'tests/', '**/*.d.ts', '**/*.test.ts', 'scripts/', 'dist/' ], thresholds: { lines: 80, functions: 80, branches: 75, statements: 80 } } }, resolve: { alias: { '@': path.resolve(__dirname, './src'), '@tests': path.resolve(__dirname, './tests') } } });