I don’t need to tell you that Storybook is a powerful tool for visualizing components; But it therefore also sounds like the perfect environment to do Visual Testing. A form of testing where a current snapshot is compared with one from the past.

Let’s set up Visual Testing using Jest; As a well-established framework, it combines unit testing in extend to visual testing. In short: Run the Jest tests, it checks whether any visual change occurred by comparing the current state of a component with a previous snapshot. To achieve this we will need a little more than Jest only…

Matthias Greif

Everything Web/App; Gym in the spare time.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store