# 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 | | --------- | ------------------------------------------------------ | | Inference | `@nx/cypress/plugin` in nx.json plugins array | | Executor | `@nx/cypress:cypress` executor in project.json targets | ## Run Specific Test File ### Inference ```bash nx e2e -- --spec= ``` ### Executor ```bash nx run :e2e --spec= ``` ## Quick Reference | Task | Inference | Executor | | ----------- | --------------------------------------- | ---------------------------------------- | | Run file | `nx e2e proj -- --spec=path/file.cy.ts` | `nx run proj:e2e --spec=path/file.cy.ts` | | Run pattern | `nx e2e proj -- --spec="**/*login*"` | `nx run proj:e2e --spec="**/*login*"` |