@nx/react:component-cypress-spec
Create a Storybook Cypress spec for a UI component that has a story.
Monorepo World: October 7, 2024Monorepo World: October 7, 2024Join us!
Create a Storybook Cypress spec for a UI component that has a story.
1nx generate component-cypress-spec ...
2
By default, Nx will search for component-cypress-spec
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/react:component-cypress-spec ...
2
Show what will be generated without writing to disk:
1nx g component-cypress-spec ... --dry-run
2
Relative path to the component file from the library root?
The project name for which to generate tests.
The Cypress project to generate the stories under. By default, inferred from project
.
false
Generate JavaScript files rather than TypeScript files.
false
Skip formatting files.