@nx/angular:component-cypress-spec
Creates a Storybook Cypress spec for a UI component that has a story.
Monorepo World: October 7, 2024Monorepo World: October 7, 2024Join us!
Please do not extend this schema as it is part of Nx internal usage.
Creates a Storybook Cypress spec for a UI component that has a story.
Create a cypress spec for a component that is set up with Storybook.
1nx g @nx/angular:component-cypress-spec --componentName=MyButtonComponent --componentPath=libs/ui/src/lib/button/button.component.ts --componentFileName=button.component --projectName=ui --projectPath=libs/ui
21nx generate component-cypress-spec ...
2By 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/angular:component-cypress-spec ...
2Show what will be generated without writing to disk:
1nx g component-cypress-spec ... --dry-run
2Class name of the component.
Relative path to the component file from the project root.
Component file name without the .ts extension.
The name of the project.
Path to the project.
The Cypress project to generate the stories under. By default, inferred from projectName.
Directory where to place the generated spec file. By default matches the value of the componentPath option.
falseSkip formatting files.