- Update `/packages/` links to `/nx-api/` - Convert some unneeded absolute links to relative - Remove leftover examples doc for the already removed `cypress-project` generator <!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #26126
19 lines
760 B
Markdown
19 lines
760 B
Markdown
This is a framework-agnostic generator for adding component testing to a project.
|
|
|
|
```bash
|
|
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
|
|
|
|
- [React component testing](/nx-api/react/generators/cypress-component-configuration)
|
|
- [Angular component testing](/nx-api/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](/recipes/cypress/cypress-component-testing)
|