@nx/vitest 22.5.0 → 22.6.0-beta.0
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/LICENSE +1 -1
- package/PLUGIN.md +8 -16
- package/package.json +4 -4
package/LICENSE
CHANGED
package/PLUGIN.md
CHANGED
|
@@ -6,21 +6,13 @@ After making changes to a project, run the relevant test file to verify your cha
|
|
|
6
6
|
|
|
7
7
|
Check in order (first match wins):
|
|
8
8
|
|
|
9
|
-
| Mode | Detection
|
|
10
|
-
| --------- |
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
| Executor | `@nx/vitest:test` executor in project.json targets |
|
|
9
|
+
| Mode | Detection |
|
|
10
|
+
| --------- | ---------------------------------------------------------- |
|
|
11
|
+
| Inference | `@nx/vitest` or `@nx/vite/plugin` in nx.json plugins array |
|
|
12
|
+
| Executor | `@nx/vitest:test` executor in project.json targets |
|
|
14
13
|
|
|
15
14
|
## Run Specific Test File
|
|
16
15
|
|
|
17
|
-
### Atomized
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
nx run <project>:<ciTargetName>--<path/to/file.spec.ts>
|
|
21
|
-
# Example: nx run my-lib:test-ci--src/utils.spec.ts
|
|
22
|
-
```
|
|
23
|
-
|
|
24
16
|
### Inference
|
|
25
17
|
|
|
26
18
|
```bash
|
|
@@ -35,7 +27,7 @@ nx run <project>:test --testFile=<path/to/file.spec.ts>
|
|
|
35
27
|
|
|
36
28
|
## Quick Reference
|
|
37
29
|
|
|
38
|
-
| Task |
|
|
39
|
-
| ----------- |
|
|
40
|
-
| Run file | `nx
|
|
41
|
-
| Run pattern |
|
|
30
|
+
| Task | Inference | Executor |
|
|
31
|
+
| ----------- | ----------------------------------- | ----------------------------------------------- |
|
|
32
|
+
| Run file | `nx test proj -- path/file.spec.ts` | `nx run proj:test --testFile=path/file.spec.ts` |
|
|
33
|
+
| Run pattern | `nx test proj -- -t "pattern"` | `nx run proj:test --testNamePattern="pattern"` |
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/vitest",
|
|
3
3
|
"description": "The Nx Plugin for Vitest to enable fast unit testing with Vitest.",
|
|
4
|
-
"version": "22.
|
|
4
|
+
"version": "22.6.0-beta.0",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"executors": "./executors.json",
|
|
53
53
|
"generators": "./generators.json",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@nx/devkit": "22.
|
|
56
|
-
"@nx/js": "22.
|
|
55
|
+
"@nx/devkit": "22.6.0-beta.0",
|
|
56
|
+
"@nx/js": "22.6.0-beta.0",
|
|
57
57
|
"tslib": "^2.3.0",
|
|
58
58
|
"semver": "^7.6.3",
|
|
59
59
|
"@phenomnomnominal/tsquery": "~6.1.4"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"nx": "22.
|
|
74
|
+
"nx": "22.6.0-beta.0"
|
|
75
75
|
},
|
|
76
76
|
"types": "./src/index.d.ts"
|
|
77
77
|
}
|