Closed tdoran closed 6 years ago
Hi team Jeth - love your project
I saw you're testing your API route for the type of its response and for errors (nice!) - I think ideally it would be best to do so without actually performing an external API call, by using nock.
https://github.com/fac-13/jeth/blob/master/src/test.js#L37-L59
(sidenote: we tried to do this with nock and couldn't get it working)
Oops, I just realised you had this #16 issue open as a stretch goal! 🙌
Hi team Jeth - love your project
I saw you're testing your API route for the type of its response and for errors (nice!) - I think ideally it would be best to do so without actually performing an external API call, by using nock.
https://github.com/fac-13/jeth/blob/master/src/test.js#L37-L59
(sidenote: we tried to do this with nock and couldn't get it working)