// Jest setup for React Native Testing Library // Mock Expo modules jest.mock('expo-speech', () => ({ speak: jest.fn(), stop: jest.fn(), isSpeakingAsync: jest.fn().mockResolvedValue(false), })); jest.mock('expo-secure-store', () => ({ getItemAsync: jest.fn(), setItemAsync: jest.fn(), deleteItemAsync: jest.fn(), })); jest.mock('expo-constants', () => ({ expoConfig: { extra: {}, }, })); // Mock console methods during tests to reduce noise global.console = { ...console, log: jest.fn(), debug: jest.fn(), info: jest.fn(), warn: jest.fn(), error: jest.fn(), };