@nx/jest 21.0.0 → 21.0.2
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": "21.0.
|
|
3
|
+
"version": "21.0.2",
|
|
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": {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@jest/reporters": "^29.4.1",
|
|
39
39
|
"@jest/test-result": "^29.4.1",
|
|
40
|
-
"@nx/devkit": "21.0.
|
|
41
|
-
"@nx/js": "21.0.
|
|
40
|
+
"@nx/devkit": "21.0.2",
|
|
41
|
+
"@nx/js": "21.0.2",
|
|
42
42
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
43
43
|
"identity-obj-proxy": "3.0.0",
|
|
44
44
|
"jest-config": "^29.4.1",
|
|
@@ -48,6 +48,7 @@ function normalizeOptions(tree, options) {
|
|
|
48
48
|
return {
|
|
49
49
|
...schemaDefaults,
|
|
50
50
|
...options,
|
|
51
|
+
keepExistingVersions: options.keepExistingVersions ?? true,
|
|
51
52
|
rootProject: project.root === '.' || project.root === '',
|
|
52
53
|
isTsSolutionSetup: (0, ts_solution_setup_1.isUsingTsSolutionSetup)(tree),
|
|
53
54
|
};
|
|
@@ -29,5 +29,5 @@ function ensureDependencies(tree, options) {
|
|
|
29
29
|
else if (options.compiler === 'swc') {
|
|
30
30
|
devDeps['@swc/jest'] = versions_1.swcJestVersion;
|
|
31
31
|
}
|
|
32
|
-
return (0, devkit_1.addDependenciesToPackageJson)(tree, dependencies, devDeps);
|
|
32
|
+
return (0, devkit_1.addDependenciesToPackageJson)(tree, dependencies, devDeps, undefined, options.keepExistingVersions);
|
|
33
33
|
}
|
|
@@ -30,6 +30,7 @@ export interface JestProjectSchema {
|
|
|
30
30
|
* @deprecated Use the `setupFile` option instead. It will be removed in Nx v22.
|
|
31
31
|
*/
|
|
32
32
|
skipSetupFile?: boolean;
|
|
33
|
+
keepExistingVersions?: boolean;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
export type NormalizedJestProjectSchema = JestProjectSchema & {
|
|
@@ -78,6 +78,12 @@
|
|
|
78
78
|
"runtimeTsconfigFileName": {
|
|
79
79
|
"type": "string",
|
|
80
80
|
"description": "The name of the project's tsconfig file that includes the runtime source files. If not provided, it will default to `tsconfig.lib.json` for libraries and `tsconfig.app.json` for applications."
|
|
81
|
+
},
|
|
82
|
+
"keepExistingVersions": {
|
|
83
|
+
"type": "boolean",
|
|
84
|
+
"x-priority": "internal",
|
|
85
|
+
"description": "Keep existing dependencies versions",
|
|
86
|
+
"default": true
|
|
81
87
|
}
|
|
82
88
|
},
|
|
83
89
|
"required": []
|