@nx/angular:component-cypress-spec
Creates a Cypress spec for a UI component that has a story.
Nx Launch Week & Launch Conf are coming up!Nx Launch Week & Launch Conf are coming up!Don't miss out!
Please do not extend this schema as it is part of Nx internal usage.
Creates a 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
2
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/angular:component-cypress-spec ...
2
Show what will be generated without writing to disk:
1nx g component-cypress-spec ... --dry-run
2
Class 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.
false
Skip formatting files.