4 ms·
I've heard this called "snapshot testing" I've used Chromatic before and really enjoyed it: https://www.chromatic.com/features/test https://www.chromatic.com/f
by lelandfe 5y ago
I've heard this called "snapshot testing"
I've used Chromatic before and really enjoyed it: https://www.chromatic.com/features/test https://www.chromatic.com/features/test
Jest also offers the core functionality if you want to roll your own tests: https://jestjs.io/docs/snapshot-testing https://jestjs.io/docs/snapshot-testing
- seestraw 5y agoThanks! Is Chromatic only for Storybook?
- lelandfe 5y agoIt's tightly integrated with it, so if not "only for Storybook," then near to it. I like Storybook, but it's not worth implementing solely for visual CI testing IMO. But phrases like "snapshot testing" and "visual regression testing" are what you you/your FE team should be Googling – hopefully there's a tool out there that fits your existing architecture! Otherwise, as sibling commenters have noted, a policy of screenshots also works.
- advanderveer 5y agoI can second the effectiveness of Chromatic, essential for us at crewlinker.com. We have over 80 components with 281 stories, all being checked for visual regressions on every PR. It is also surprisingly effective of just catching regular errors that occur because some rendering logic may indeed result in the app crashing.
- octatrack 5y agoI also vouch for Chromatic, it has been extremely valuable for us. It is only working with Storybook, though, as it's made by the same company.
- 2rsf 5y agoI suppose any decent visual testing tool would work, there are quite a few of them