@nrwl/cypress:cypress-component-project

Set up Cypress Component Test for a project

Usage

nx generate cypress-component-project ...
nx g cy-cmp ... # same

By default, Nx will search for cypress-component-project in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

nx g @nrwl/cypress:cypress-component-project ...

Show what will be generated without writing to disk:

nx g cypress-component-project ... --dry-run

Options

componentType (required)

Type: string

Possible values: react, next

Which framework is being used?

project (required)

Type: string

The name of the project to convert

compiler

Default: babel

Type: string

Possible values: swc, babel

Which compiler is being used in the existing project?

force

Default: false

Type: boolean

Overwrite an existing cypress component test project. This is helpful if you want to reset to the default configurations.