// Mock the geminiService jest.mock('../services/geminiService', () => ({ geminiService: { generateImage: jest.fn(), editImage: jest.fn() } })); // Mock the ToastContext jest.mock('../components/ToastContext', () => ({ useToast: () => ({ addToast: jest.fn() }) })); // Mock the uploadService jest.mock('../services/uploadService', () => ({ uploadImages: jest.fn() })); // Mock the imageUtils jest.mock('../utils/imageUtils', () => ({ generateId: () => 'test-id', blobToBase64: jest.fn() })); describe('useImageGeneration', () => { // Tests here });