by onionisafruit · 11mo ago · 0 comments
They are also nice because I don’t have to think so much about assertions. They automatically assert the response is exactly the same as before.
But how would you do snapshot testing for behaviour? I'm approaching the problem primarily from the backend side and there most tests are about behaviour.
But, I spend very little or no time on API endpoints since I don't work on projects where the frontend is an SPA. :)