Hacker News new | ask | show | jobs
by mikewhy 2139 days ago
I would love for someone to give examples of how snapshot / storyshot testing actually helped. Always seemed like the dollar-store version of screenshot diffing, with extra baggage kept around the source tree, added maintenance, and seemingly worthless tests.

(No, `expect(<MyComponent />).toMatchSnapshot()` is not a good test).

1 comments

I've never understood snapshot tests either. My team tried them early on but abandoned them quickly. Whats the value in them?