@nx/jest 22.7.2 → 22.7.4
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/jest",
|
|
3
|
-
"version": "22.7.
|
|
3
|
+
"version": "22.7.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Jest contains executors and generators allowing your workspace to use the powerful Jest testing capabilities.",
|
|
6
6
|
"repository": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@jest/reporters": "^30.0.2",
|
|
40
40
|
"@jest/test-result": "^30.0.2",
|
|
41
|
-
"@nx/devkit": "22.7.
|
|
42
|
-
"@nx/js": "22.7.
|
|
41
|
+
"@nx/devkit": "22.7.4",
|
|
42
|
+
"@nx/js": "22.7.4",
|
|
43
43
|
"@phenomnomnominal/tsquery": "~6.2.0",
|
|
44
44
|
"identity-obj-proxy": "3.0.0",
|
|
45
45
|
"jest-config": "^30.0.2",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"yargs-parser": "21.1.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"nx": "22.7.
|
|
56
|
+
"nx": "22.7.4"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
package/src/plugins/plugin.js
CHANGED
|
@@ -222,7 +222,6 @@ async function buildJestTargets(rawConfig, needsDtsInputs, configFilePath, proje
|
|
|
222
222
|
const targetName = `${options.ciTargetName}--${relativePath}`;
|
|
223
223
|
dependsOn.push({
|
|
224
224
|
target: targetName,
|
|
225
|
-
projects: 'self',
|
|
226
225
|
params: 'forward',
|
|
227
226
|
options: 'forward',
|
|
228
227
|
});
|
|
@@ -303,7 +302,10 @@ async function buildJestTargets(rawConfig, needsDtsInputs, configFilePath, proje
|
|
|
303
302
|
? await source.getTestPaths(config.globalConfig, config.projectConfig)
|
|
304
303
|
: // @ts-expect-error Jest v29 doesn't have the projectConfig parameter
|
|
305
304
|
await source.getTestPaths(config.globalConfig);
|
|
306
|
-
|
|
305
|
+
// Sort to keep atomized target name insertion order stable.
|
|
306
|
+
// jest.SearchSource.getTestPaths walks via jest-haste-map's
|
|
307
|
+
// parallel workers, so its output order isn't guaranteed.
|
|
308
|
+
const testPaths = new Set(specs.tests.map(({ path }) => path).sort());
|
|
307
309
|
if (testPaths.size > 0) {
|
|
308
310
|
const targetGroup = [];
|
|
309
311
|
metadata = {
|
|
@@ -326,7 +328,6 @@ async function buildJestTargets(rawConfig, needsDtsInputs, configFilePath, proje
|
|
|
326
328
|
const targetName = `${options.ciTargetName}--${relativePath}`;
|
|
327
329
|
dependsOn.push({
|
|
328
330
|
target: targetName,
|
|
329
|
-
projects: 'self',
|
|
330
331
|
params: 'forward',
|
|
331
332
|
options: 'forward',
|
|
332
333
|
});
|
|
@@ -4,7 +4,7 @@ exports.getJestProjectsAsync = getJestProjectsAsync;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
const path_1 = require("path");
|
|
7
|
-
const
|
|
7
|
+
const yargs_parser_1 = tslib_1.__importDefault(require("yargs-parser"));
|
|
8
8
|
function getJestConfigProjectPath(projectJestConfigPath) {
|
|
9
9
|
return (0, path_1.join)('<rootDir>', projectJestConfigPath);
|
|
10
10
|
}
|
|
@@ -98,7 +98,7 @@ function collectJestConfigFromCommand(command, cwd, jestConfigurations) {
|
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
100
|
for (const match of matches) {
|
|
101
|
-
const parsed =
|
|
101
|
+
const parsed = (0, yargs_parser_1.default)(match, {
|
|
102
102
|
configuration: { 'strip-dashed': true },
|
|
103
103
|
string: ['config'],
|
|
104
104
|
});
|