@nx/cypress 22.4.0-canary.20260114-45f2ae3 → 22.4.0-canary.20260116-323554b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/PLUGIN.md +41 -0
- package/package.json +5 -5
- package/project.json +5 -0
package/PLUGIN.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Cypress
|
|
2
|
+
|
|
3
|
+
After making changes to a project, run the relevant test file to verify your changes work correctly.
|
|
4
|
+
|
|
5
|
+
## Mode Detection
|
|
6
|
+
|
|
7
|
+
Check in order (first match wins):
|
|
8
|
+
|
|
9
|
+
| Mode | Detection |
|
|
10
|
+
| --------- | ------------------------------------------------------ |
|
|
11
|
+
| Atomized | `ciTargetName` in nx.json `@nx/cypress` plugin options |
|
|
12
|
+
| Inference | `@nx/cypress/plugin` in nx.json plugins array |
|
|
13
|
+
| Executor | `@nx/cypress:cypress` executor in project.json targets |
|
|
14
|
+
|
|
15
|
+
## Run Specific Test File
|
|
16
|
+
|
|
17
|
+
### Atomized
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
nx run <project>:<ciTargetName>--<path/to/file.cy.ts>
|
|
21
|
+
# Example: nx run my-app-e2e:e2e-ci--src/login.cy.ts
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Inference
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
nx e2e <project> -- --spec=<path/to/file.cy.ts>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Executor
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
nx run <project>:e2e --spec=<path/to/file.cy.ts>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Quick Reference
|
|
37
|
+
|
|
38
|
+
| Task | Atomized | Inference | Executor |
|
|
39
|
+
| ----------- | ------------------------------------- | --------------------------------------- | ---------------------------------------- |
|
|
40
|
+
| 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` |
|
|
41
|
+
| Run pattern | N/A | `nx e2e proj -- --spec="**/*login*"` | `nx run proj:e2e --spec="**/*login*"` |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/cypress",
|
|
3
|
-
"version": "22.4.0-canary.
|
|
3
|
+
"version": "22.4.0-canary.20260116-323554b",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Cypress contains executors and generators allowing your workspace to use the powerful Cypress integration testing capabilities.",
|
|
6
6
|
"repository": {
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"migrations": "./migrations.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@nx/devkit": "22.4.0-canary.
|
|
40
|
-
"@nx/eslint": "22.4.0-canary.
|
|
41
|
-
"@nx/js": "22.4.0-canary.
|
|
39
|
+
"@nx/devkit": "22.4.0-canary.20260116-323554b",
|
|
40
|
+
"@nx/eslint": "22.4.0-canary.20260116-323554b",
|
|
41
|
+
"@nx/js": "22.4.0-canary.20260116-323554b",
|
|
42
42
|
"@phenomnomnominal/tsquery": "~6.1.4",
|
|
43
43
|
"detect-port": "^1.5.1",
|
|
44
44
|
"semver": "^7.6.3",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"tslib": "^2.3.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"nx": "22.4.0-canary.
|
|
49
|
+
"nx": "22.4.0-canary.20260116-323554b"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"cypress": ">= 13 < 16"
|