@nx/jest 21.0.0-beta.7 → 21.0.0-beta.8
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 +3 -3
- package/src/plugins/plugin.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/jest",
|
|
3
|
-
"version": "21.0.0-beta.
|
|
3
|
+
"version": "21.0.0-beta.8",
|
|
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.0-beta.
|
|
41
|
-
"@nx/js": "21.0.0-beta.
|
|
40
|
+
"@nx/devkit": "21.0.0-beta.8",
|
|
41
|
+
"@nx/js": "21.0.0-beta.8",
|
|
42
42
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
43
43
|
"identity-obj-proxy": "3.0.0",
|
|
44
44
|
"jest-config": "^29.4.1",
|
package/src/plugins/plugin.js
CHANGED
|
@@ -15,6 +15,7 @@ const path_1 = require("path");
|
|
|
15
15
|
const version_utils_1 = require("../utils/version-utils");
|
|
16
16
|
const workspace_context_1 = require("nx/src/utils/workspace-context");
|
|
17
17
|
const node_path_1 = require("node:path");
|
|
18
|
+
const installation_directory_1 = require("nx/src/utils/installation-directory");
|
|
18
19
|
const pmc = (0, devkit_1.getPackageManagerCommand)();
|
|
19
20
|
function readTargetsCache(cachePath) {
|
|
20
21
|
return (0, fs_1.existsSync)(cachePath) ? (0, devkit_1.readJsonFile)(cachePath) : {};
|
|
@@ -418,7 +419,7 @@ function resolveJestPath(projectRoot, workspaceRoot) {
|
|
|
418
419
|
return resolvedJestPaths[projectRoot];
|
|
419
420
|
}
|
|
420
421
|
resolvedJestPaths[projectRoot] = require.resolve('jest', {
|
|
421
|
-
paths: [projectRoot, workspaceRoot, __dirname],
|
|
422
|
+
paths: [projectRoot, ...(0, installation_directory_1.getNxRequirePaths)(workspaceRoot), __dirname],
|
|
422
423
|
});
|
|
423
424
|
return resolvedJestPaths[projectRoot];
|
|
424
425
|
}
|