nx/packages/cypress/docs/cypress-component-project-examples.md
Caleb Ukle 09fd9132e6
docs(testing): add cypress example docs (#12209)
* docs(testing): add cypress example docs

* docs(core): sync docs
2022-09-23 14:06:32 -06:00

19 lines
744 B
Markdown

This is a framework-agnostic generator for adding component testing to a project.
```bash
nx g cypress-component-project --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-project` directly
- [React component testing](/packages/react/generators/cypress-component-configuration)
- [Angular component testing](/packages/angular/generators/cypress-component-configuration)
A new `component-test` target will be added to the specified project.
```bash
nx g component-test my-cool-project
```
Read more about [Cypress Component Testing](/cypress/cypress-component-testing)