2026-08-19 16:29:17 +05:30
|
|
|
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',
|
2026-09-03 13:02:05 +05:30
|
|
|
DATABASE_URL: 'postgresql://postgres:postgres@localhost:5433/supporthub_test_db?schema=public',
|
2026-08-19 16:29:17 +05:30
|
|
|
JWT_SECRET: 'super-secret-test-jwt-key-min-32-characters',
|
2026-08-21 18:40:43 +05:30
|
|
|
INTEGRATION_CREDENTIAL_ENCRYPTION_KEY: '204fcf94032f4e369d756127444864723cbac2b473e9d8bdaa942c1a5a4b7bec',
|
2026-08-19 16:29:17 +05:30
|
|
|
},
|
|
|
|
|
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'),
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|