// Global test setup // Mock console methods if needed beforeEach(() => { jest.clearAllMocks(); }); // Suppress console.error during tests unless explicitly testing error conditions const originalConsoleError = console.error; beforeEach(() => { console.error = jest.fn(); }); afterEach(() => { console.error = originalConsoleError; });