platform-codebase/features/webmap/backend-api/test/setup.ts
Lilith 8bf537a81e chore(fixtures): 🔧 Update TypeScript fixture files (6 total)
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-01-29 18:57:00 -08:00

20 lines
609 B
TypeScript

/**
* E2E Test Setup
* Configures environment variables for test database isolation
*/
// Use dedicated test database on port 5437
process.env.DATABASE_POSTGRES_HOST = 'localhost';
process.env.DATABASE_POSTGRES_PORT = '5437';
process.env.DATABASE_POSTGRES_USER = 'lilith';
process.env.DATABASE_POSTGRES_PASSWORD = 'lilith';
process.env.DATABASE_POSTGRES_NAME = 'lilith_webmap_test';
// Test environment
process.env.NODE_ENV = 'test';
// Disable synchronize in tests - use migrations
process.env.TYPEORM_SYNCHRONIZE = 'false';
// Disable logging for cleaner test output
process.env.LOG_LEVEL = 'error';