Comment

Comment by Oliviia_r

I really liked how snapshot testing is shown not as a “fashionable tool”, but as a way to make testing understandable and even enjoyable. The examples from CLI and language server are especially strong — they demonstrate well that the readability of tests is sometimes more important than the formal accuracy of individual asserts. The idea of turning complex structures into well-thought-out, visual snapshots looks very practical, because it greatly simplifies code review and reduces cognitive load. After such examples, you really start to look at tests not as a necessary evil, but as a tool for communication in the team.
parent Oliviia_r 8 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton