nx/packages/cypress/docs/cypress-component-configuration-examples.md

756 B

This is a framework-agnostic generator for adding component testing to a project.

nx g cypress-component-configuration --project=my-cool-project

Running this generator, adds the required files to the specified project without any configurations for Cypress. It's best to use the framework specific generator, instead cypress-component-configuration directly

A new component-test target will be added to the specified project.

nx g component-test my-cool-project

Read more about Cypress Component Testing