79592902

Date: 2025-04-25 16:03:01
Score: 0.5
Natty:
Report link

If you change the mocking method and then you cast, you could avoid the ignore comment:

jest.spyOn(Auth, 'currentSession').mockReturnValue({
  getIdToken: () => ({
    getJwtToken: () => 'mock',
  }),
} as unknown as Promise<CognitoUserSession>)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Oriol Roma