Use Cypress and Storybook to test your React Components in Isolation

Share this video with your friends

Send Tweet

Nx combines a lot of the best tools on the market, integrates them, and provides tooling to provide the best possible developer experience. One such pair is Cypress and Storybook. Storybook allows developing components in isolation, which is also a great basis for testing components, which is where Cypress shines. In this lesson, we're exploring some of the @nrwl/storybook code generation utilities that allow you to not only configure Storybook for a React application but automatically also set up a Cypress test configuration for it along with some spec files generated from the Storybook stories.