import * as dotenv from 'dotenv' // Load environment variables from .env.test if it exists, otherwise from .env dotenv.config({ path: '.env.test' }) // Mock console methods to keep test output clean global.console = { ...console, log: jest.fn(), error: jest.fn(), warn: jest.fn(), info: jest.fn(), debug: jest.fn(), }