@nrwl/angular:component-cypress-spec
Creates a Cypress spec for a UI component that has a story.
Examples
Create a cypress spec for a component that is set up with Storybook.
nx g @nrwl/angular:component-cypress-spec --componentName=MyButtonComponent --componentPath=libs/ui/src/lib/button/button.component.ts --componentFileName=button.component --projectName=ui --projectPath=libs/ui
Usage
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 @nrwl/angular:component-cypress-spec ...
Show what will be generated without writing to disk:
nx g component-cypress-spec ... --dry-run