// Jest test setup import { jest } from '@jest/globals'; // Mock console methods to reduce noise in tests global.console = { ...console, log: jest.fn(), warn: jest.fn(), error: jest.fn(), }; // Set test environment variables Object.defineProperty(process.env, 'NODE_ENV', { value: 'test', writable: true, configurable: true, }); process.env.NEXTAUTH_SECRET = 'test-secret'; process.env.NEXTAUTH_URL = 'http://localhost:3000'; // Mock node-fetch for transcript fetcher tests jest.mock('node-fetch', () => ({ __esModule: true, default: jest.fn(), }));