DEV Community

Discussion on: Testing API Request Hooks with Jest, Sinon, and react-testing-library

stevetaylor profile image
Steve Taylor

Yeah, I gave up and mocked my endpoint functions, which are a simple layer atop superagent, which uses XHR.