import { defineConfig } from 'vitest/config'; import path from 'path'; export default defineConfig({ test: { globals: true, environment: 'node', include: ['src/__tests__/**/*.{test,spec}.{ts,js}'], exclude: ['node_modules', 'dist', 'src/scripts'], coverage: { provider: 'v8', reporter: ['text', 'json', 'html'], exclude: [ 'node_modules/', 'dist/', 'src/__tests__/', 'src/scripts/', '**/*.d.ts', '**/*.config.{ts,js}', '**/index.ts', ], }, testTimeout: 30000, // 30 seconds for integration tests hookTimeout: 10000, // 10 seconds for setup/teardown }, resolve: { alias: { '@': path.resolve(__dirname, './src'), }, }, });