@nrwl/react:cypress-component-configuration
Add a Cypress component testing configuration to an existing project.
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/react: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 react project:
nx g @nrwl/react:cypress-component-configuration --project=my-react-project
Add component testing to your react project and generate component tests for your existing components:
nx g @nrwl/react:cypress-component-configuration --project=my-react-project --generate-tests