first commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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'),
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user