@nrwl/angular:component-cypress-spec

Creates a Cypress spec for a UI component that has a story.

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

Options

componentName

Required
string

Class name of the component.

componentPath

Required
string

Relative path to the component file from the project root.

componentFileName

Required
string

Component file name without the .ts extension.

cypressProject

string

The Cypress project to generate the stories under. By default, inferred from projectName.

projectName

Required
string

The name of the project.

projectPath

Required
string

Path to the project.