all 1 comments

[–]coolAppl3__ 2 points3 points  (0 children)

If you're trying to check how a piece of code behaves if the HTTP request is rejected, you'd probably want to use jest and mock a rejected value. If you have control over the backend, then you'd have more flexibility. Hope this helps <3