lilith-platform.live/codebase/@features/admin/backend-api/vitest.config.ts

18 lines
627 B
TypeScript

import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
environment: 'node',
globals: false,
setupFiles: ['./src/__tests__/setup.ts'],
env: {
QUINN_ADMIN_TEST_DB_URL: process.env['QUINN_ADMIN_TEST_DB_URL'] ?? 'postgresql://quinn:devpassword@localhost:25435/quinn_admin_test',
JWT_SECRET: 'test-secret-32-chars-padding-here',
NODE_ENV: 'production',
PHOTOS_DIR: '/tmp/test-admin-photos',
PROTECT_PHOTOS_SCRIPT: '/dev/null',
PROTECT_PHOTOS_DIR: '/tmp/test-admin-photos',
PHOTOS_RSYNC_DEST: 'test@localhost:/tmp/test-rsync',
},
},
});