News for hackers. Stuff that matters.
Re:Storybook 6.0 your new favourite tool for front-end devel... by sthomas1618 on Wednesday August 12, 2020 @11:34AM (#24133077)
In addition to Storybook, their Chromatic product is amazing.

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

Re:Storybook 6.0 your new favourite tool for front-end devel... by mikewhy on Wednesday August 12, 2020 @05:16PM (#24137082)
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).

Re:Storybook 6.0 your new favourite tool for front-end devel... by sthomas1618 on Thursday August 13, 2020 @01:50AM (#24140317)
I've never understood snapshot tests either. My team tried them early on but abandoned them quickly. Whats the value in them?
Re:Storybook 6.0 your new favourite tool for front-end devel... by thrownaway954 on Wednesday August 12, 2020 @02:26PM (#24135138)
when suggesting a complementary or competing tool... it is best to add a link to it.

https://www.chromatic.com/