You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1.4 KiB

Cypress

After making changes to a project, run the relevant test file to verify your changes work correctly.

Mode Detection

Check in order (first match wins):

Mode Detection
Atomized ciTargetName in nx.json @nx/cypress plugin options
Inference @nx/cypress/plugin in nx.json plugins array
Executor @nx/cypress:cypress executor in project.json targets

Run Specific Test File

Atomized

nx run <project>:<ciTargetName>--<path/to/file.cy.ts>
# Example: nx run my-app-e2e:e2e-ci--src/login.cy.ts

Inference

nx e2e <project> -- --spec=<path/to/file.cy.ts>

Executor

nx run <project>:e2e --spec=<path/to/file.cy.ts>

Quick Reference

Task Atomized Inference Executor
Run file nx run proj:e2e-ci--path/file.cy.ts nx e2e proj -- --spec=path/file.cy.ts nx run proj:e2e --spec=path/file.cy.ts
Run pattern N/A nx e2e proj -- --spec="**/*login*" nx run proj:e2e --spec="**/*login*"