Re:Ask HN: Is it time for a new Storybook?
by samhuk on Saturday November 19, 2022 @05:46PM
(#33675679)
Thanks for your feedback. I agree on most of your points.
I feel like Cypress moving into the component testing arena was an interesting move.
Re:Ask HN: Is it time for a new Storybook?
by chantastic on Monday November 21, 2022 @01:41AM
(#33689572)
lmiller1990, have you experimented much with @storybook/test-runner?
I've found it pretty capable for doubling my stories as Jest tests. For those using testing-library for component testing, it even acts like a GUI for those tests.
If you're interested, I threw together a little walkthru that show some of the ways I'm using it with Jest: https://github.com/chantastic/vite-react-jest-testing-librar...
Storybook is good for design, but the testing integration is definitely lacking. Having to maintain <test suite in Jest> alongside <design suite> feels like a lot of code.