I've been working within a project for a couple of months now and met several issues, when the API response changed by the backend guys and it was structured in a way that I didn't expect it to be structured.
The tests that we have mocks the API responses, so they all pass and there is nothing wrong when deploying the app in that state :(
My question is, as I'm quite new to the testing - is it a common thing to do to test the API responses themselves?
If yes - are there any JavaScript libraries that can help me with that?
If no - how to make sure that the response are structured that way we want them to be?
Aucun commentaire:
Enregistrer un commentaire