News for hackers. Stuff that matters.
Re:Why frozen test fixtures are a problem on large projects ... by onionisafruit on Tuesday December 09, 2025 @09:50AM (#46205498)
I'm also primarily on the back end. Like most backenders, I spend my workdays on http endpoints that return json. When I test these the "snapshot" is a json file with a pretty-printed version of the endpoint's response body. Tests fail when the file generated isn't the same as the existing file.
Re:Why frozen test fixtures are a problem on large projects ... by radanskoric on Tuesday December 09, 2025 @10:01AM (#46205637)
Ah, Ok, yes, for API endpoints it makes a lot of sense. Especially if it's a public API, you need to inspect the output anyway, to ensure that the public contract is not broken.

But, I spend very little or no time on API endpoints since I don't work on projects where the frontend is an SPA. :)