This video covers how to test a function which makes an HTTP call with fetch, mocking it in Jest to avoid actual HTTP calls, covering both success and failure test cases.
Source code
https://github.com/leighhalliday/mock-fetch-jest-demo
#testing #fetch #web-development