Testing with NX
Create High Quality React apps that scale with Nx, Storybook & Cypress
Running unit tests
Run nx test my-app
to execute the unit tests via Jest.
Run nx affected:test
to execute the unit tests affected by a change.
npx nx test shared-ui
Running end-to-end tests
Testing Nextjs and Storybook with Cypress
Run nx e2e my-app
to execute the end-to-end tests via Cypress.
nx e2e site-e2e --watch
Run nx affected:e2e
to execute the end-to-end tests affected by a change.
Configuration
nx generate @nrwl/react:storybook-configuration --name=shared-ui --cypressDirectory=storybook-e2e