Mocking XHR request with Jest

In my last post, I wrote about how to mock JavaScript Fetch API on Jest using TypeScript. You can check it out here. Now I will demonstrate how to mock an XMLHttpRequest (XHR) using the same stack: Jest and TypeScript.

Read More