Hacker News new | past | comments | ask | show | jobs | submit login

But can't you identify the signal of the input and output and write small test cases to test just the signal?

Snaps test the signal + noise. They help alert you when either changed, which is helpful if you think you may be missing tests for the signal, but ideally you would just make sure all the signal is tested, and the snaps would be just a later, independent sanity check tool.

Obviously you know the details and often once I learn the details I'm like "oh yeah in this case I see how the cost benefit makes sense". Just more speaking in generalities.




> They help alert you when either changed

that's exactly what I'm looking for =D. See response to sibling comment for why I also want to be able to review the full code layout.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: