@nx/angular:component-cypress-spec
Creates a Cypress spec for a UI component that has a story.
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.
nx 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
nx generate component-cypress-spec ...
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:
nx g @nx/angular:component-cypress-spec ...
Show what will be generated without writing to disk:
nx g component-cypress-spec ... --dry-run
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.