@nx/vitest 22.7.1 → 22.7.3
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/package.json +6 -6
- package/src/plugins/plugin.js +5 -1
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.7.
|
|
4
|
+
"version": "22.7.3",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"executors": "./executors.json",
|
|
53
53
|
"generators": "./generators.json",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@nx/devkit": "22.7.
|
|
56
|
-
"@nx/js": "22.7.
|
|
55
|
+
"@nx/devkit": "22.7.3",
|
|
56
|
+
"@nx/js": "22.7.3",
|
|
57
57
|
"tslib": "^2.3.0",
|
|
58
58
|
"semver": "^7.6.3",
|
|
59
|
-
"@phenomnomnominal/tsquery": "~6.
|
|
59
|
+
"@phenomnomnominal/tsquery": "~6.2.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@nx/eslint": "22.7.
|
|
62
|
+
"@nx/eslint": "22.7.3",
|
|
63
63
|
"vitest": "^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0",
|
|
64
64
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
|
|
65
65
|
},
|
|
@@ -75,6 +75,6 @@
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"nx": "22.7.
|
|
78
|
+
"nx": "22.7.3"
|
|
79
79
|
}
|
|
80
80
|
}
|
package/src/plugins/plugin.js
CHANGED
|
@@ -424,7 +424,11 @@ async function getTestPathsRelativeToProjectRoot(projectRoot, workspaceRoot) {
|
|
|
424
424
|
watch: false,
|
|
425
425
|
});
|
|
426
426
|
const relevantTestSpecifications = await vitest.getRelevantTestSpecifications();
|
|
427
|
+
// Sort to keep atomized target name insertion order stable.
|
|
428
|
+
// vitest.getRelevantTestSpecifications uses tinyglobby internally,
|
|
429
|
+
// which does not sort its filesystem traversal output.
|
|
427
430
|
return relevantTestSpecifications
|
|
428
431
|
.filter((ts) => fullProjectRoot === '.' ? true : ts.moduleId.startsWith(fullProjectRoot))
|
|
429
|
-
.map((ts) => (0, devkit_1.normalizePath)((0, node_path_1.relative)(projectRoot, ts.moduleId)))
|
|
432
|
+
.map((ts) => (0, devkit_1.normalizePath)((0, node_path_1.relative)(projectRoot, ts.moduleId)))
|
|
433
|
+
.sort();
|
|
430
434
|
}
|