Hacker News new | ask | show | jobs
by crubier 1739 days ago
Yes we develop on storybook first, it’s a bit like TDD but for UI.

And yes, we use Chromatic (their hosted service) and it’s been hugely beneficial, I would say a 10x ROI. Super useful for visual regression testing, sharing with non technical people in the org, etc...)

My recommendation in this field is Storybook. It’s the best tool for this use case. We also use Cypress for integration tests and heat for unit tests.

1 comments

Hi - Thanks for your reply! Glad to hear of success amid a sea of negative experiences.

I tried looking up "Heat" but was not able to find a framework/util. Could you send me the link please?

It looks like the testing feature of Chromatic is to take screenshots of the deployed component and visually compare them? So there's literally no code writing if comparing one commit to the next.

Sorry, autocorrect transformed « Jest » to « Heat ». I meant « Jest »

And yes you are right about Chromatic. It informs you directly in GitHub PRs about the number of stories that changed, visually or at the dom level. And has a nice UI to review changes visually in a click.