Live data from Hacker News

Ask HN: How to view UI changes before & after a pull request?

news.ycombinator.com

1–10 of 15 posts

Re: Ask HN: How to view UI changes before & after a pull request?

#3
post #2

I've heard this called "snapshot testing" I've used Chromatic before and really enjoyed it: 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

Thanks! Is Chromatic only for Storybook?

Re: Ask HN: How to view UI changes before & after a pull request?

#7
post #2

I've heard this called "snapshot testing" I've used Chromatic before and really enjoyed it: 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

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

Re: Ask HN: How to view UI changes before & after a pull request?

#9
post #2

I've heard this called "snapshot testing" I've used Chromatic before and really enjoyed it: 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

I 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.
Post reply on HN