Haki Benita
1 min readAug 4, 2018

--

Hey Andrew,
Thanks for the response.

Responses is indeed a great package. However, responses is needed when you want to test the logic specific to handling the request (status code, serialization etc). In our example that would be testing the actual service.

I think that when testing code that uses the service you are better off mocking the response from the service rather the mocking the response it self.

--

--

Haki Benita
Haki Benita

Written by Haki Benita

Full Stack Developer, Team Leader, Independent. More from me at https://hakibenita.com

No responses yet