Hacker News new | ask | show | jobs
by sthomas1618 2137 days ago
In addition to Storybook, their Chromatic product is amazing.

Hot take: Delete your snapshot tests. Use Chromatic instead.

2 comments

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).

I've never understood snapshot tests either. My team tried them early on but abandoned them quickly. Whats the value in them?
when suggesting a complementary or competing tool... it is best to add a link to it.

https://www.chromatic.com/