1 import * as useConfigModule from '@proton/components/hooks/useConfig';
2 import { APPS, CLIENT_TYPES } from '@proton/shared/lib/constants';
4 export const mockUseConfig = (value?: Partial<ReturnType<typeof useConfigModule.default>>) => {
5 const mockedUseConfig = jest.spyOn(useConfigModule, 'default');
7 mockedUseConfig.mockReturnValue({
8 CLIENT_TYPE: CLIENT_TYPES.MAIL,
11 APP_NAME: APPS.PROTONMAIL,
22 return mockedUseConfig;