import { defineConfig } from 'vitest/config'; import path from 'path'; export default defineConfig({ test: { globals: true, environment: 'node', include: ['tests/**/*.test.ts'], env: { NODE_ENV: 'test', DATABASE_URL: 'postgresql://postgres:postgres@localhost:5433/supporthub_test_db?schema=public', JWT_SECRET: 'super-secret-test-jwt-key-min-32-characters', INTEGRATION_CREDENTIAL_ENCRYPTION_KEY: '204fcf94032f4e369d756127444864723cbac2b473e9d8bdaa942c1a5a4b7bec', }, coverage: { provider: 'v8', reporter: ['text', 'json', 'html'], exclude: ['node_modules/', 'dist/', 'scripts/'], }, }, resolve: { alias: { '@': path.resolve(__dirname, './src'), '@/config': path.resolve(__dirname, './src/config'), '@/common': path.resolve(__dirname, './src/common'), '@/infrastructure': path.resolve(__dirname, './src/infrastructure'), '@/modules': path.resolve(__dirname, './src/modules'), '@/events': path.resolve(__dirname, './src/events'), '@/jobs': path.resolve(__dirname, './src/jobs'), }, }, });