1 import * as useConfigModule from '@proton/components/hooks/useConfig';
2 import { APPS, CLIENT_TYPES } from '@proton/shared/lib/constants';
3 import type { ProtonConfig } from '@proton/shared/lib/interfaces';
5 export const mockUseConfig = (value?: Partial<ProtonConfig>) => {
6 const spy = vi.spyOn(useConfigModule, 'default');
8 CLIENT_TYPE: CLIENT_TYPES.MAIL,
9 CLIENT_SECRET: 'string',
10 APP_VERSION: '0.0.999999',
11 APP_NAME: APPS.PROTONMAIL,