Merge branch 'renovate/all-minor-patch' into 'main'
[ProtonMail-WebClient.git] / packages / testing / lib / mockUseAuthentication.ts
blob5b0aa2ece3a7ec0df8dda6b6590bc092e3b5a396
1 import * as useAuthenticationModule from '@proton/components/hooks/useAuthentication';
3 export const mockUseAuthentication = (value: ReturnType<typeof useAuthenticationModule.default>) => {
4     const mockedUseApi = jest.spyOn(useAuthenticationModule, 'default');
6     mockedUseApi.mockReturnValue(value);
8     return mockedUseApi;
9 };