Usage
nx generate cypress-component-configuration ...
By default, Nx will search for cypress-component-configuration
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nrwl/next:cypress-component-configuration ...
Show what will be generated without writing to disk:
nx g cypress-component-configuration ... --dry-run
Examples
Add component testing to your Next project:
nx g @nrwl/next:cypress-component-configuration --project=my-react-project
Add component testing to your Next project and generate component tests for your existing components:
nx g @nrwl/react:cypress-component-configuration --project=my-react-project --generate-tests
Options
project
The name of the project to add cypress component testing configuration to
generateTests
false
Generate default component tests for existing components in the project
buildTarget
^[^:\\s]+:[^:\\s]+(:\\S+)?$
A build target used to configure Cypress component testing in the format of project:target[:configuration]
. The build target should be from a Next app. If not provided we will try to infer it from your projects usage.
skipFormat
false
Skip formatting files