1 import * as useApiModule from '@proton/components/hooks/useApi';
3 export const mockUseApi = (value?: ReturnType<typeof useApiModule.default>) => {
4 const mockedUseApi = jest.spyOn(useApiModule, 'default');
6 mockedUseApi.mockReturnValue(value ?? jest.fn());