rwadurian/backend/services/authorization-service/test/setup-integration.ts

11 lines
394 B
TypeScript

// Integration test setup
jest.setTimeout(30000)
// Mock environment variables for integration tests
process.env.DATABASE_URL = 'postgresql://test:test@localhost:5432/test_db'
process.env.REDIS_HOST = 'localhost'
process.env.REDIS_PORT = '6379'
process.env.KAFKA_BROKERS = 'localhost:9092'
process.env.JWT_SECRET = 'test-jwt-secret-key-for-integration-tests'
process.env.JWT_EXPIRES_IN = '1h'