Files

32 lines
1004 B
TypeScript
Raw Permalink Normal View History

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',
DATABASE_URL: 'postgresql://postgres:postgres@localhost:5432/supporthub_test_db?schema=public',
JWT_SECRET: 'super-secret-test-jwt-key-min-32-characters',
},
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'),
},
},
});