Course lesson

Write Cypress Tests for our React Storybook Components with Nx

Storybook is already powerful for being able to develop components in isolation as well as using those stories as living documentation for others. Nx goes a step further. It leverages the fact that Storybook exposes an iframe.html that allows to access the...

Duration
5 min
Access
Free
Transcript
Available

Storybook is already powerful for being able to develop components in isolation as well as using those stories as living documentation for others. Nx goes a step further. It leverages the fact that Storybook exposes an iframe.html that allows to access the rendering of the story without the actual Storybook frame. On top of that, Nx generates a Cypress configuration to run tests against the Storybook stories.

Prefer to read along as well? Here's the accompanying article.