@nrwl/cypress:cypress-project

Add a Cypress E2E Project

Usage

nx generate cypress-project ...

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

You can specify the collection explicitly as follows:

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

Show what will be generated without writing to disk:

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

Options

name (required)

Type: string

Name of the E2E Project

baseUrl

Type: string

The address (with the port) which your application is running on

directory

Type: string

A directory where the project is placed

js

Default: false

Type: boolean

Generate JavaScript files rather than TypeScript files

linter

Default: eslint

Type: string

Possible values: eslint, tslint, none

The tool to use for running lint checks.

project

Type: string

The name of the frontend project to test.

setParserOptionsProject

Default: false

Type: boolean

Whether or not to configure the ESLint "parserOptions.project" option. We do not do this by default for lint performance reasons.

skipFormat

Default: false

Type: boolean

Skip formatting files

skipPackageJson

Default: false

Type: boolean

Do not add dependencies to package.json.

standaloneConfig

Type: boolean

Split the project configuration into <projectRoot>/project.json rather than including it inside workspace.json