// Jest setup file
// This file runs before all tests

// Set test environment variables
process.env.NODE_ENV = 'test';
process.env.PORT = '3001';
process.env.JWT_SECRET = 'test-secret-key';
process.env.LOG_LEVEL = 'error'; // Reduce log noise during tests

// Test database configuration (using SQLite for tests)
process.env.DB_HOST = 'localhost';
process.env.DB_PORT = '3306';
process.env.DB_NAME = 'overseas_appointment_test';
process.env.DB_USER = 'root';
process.env.DB_PASSWORD = '';

// Increase test timeout for integration tests
jest.setTimeout(10000);
