@nx/jest 18.3.0 → 18.3.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": "18.3.0",
3
+ "version": "18.3.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": {
@@ -36,8 +36,8 @@
36
36
  "dependencies": {
37
37
  "@jest/reporters": "^29.4.1",
38
38
  "@jest/test-result": "^29.4.1",
39
- "@nx/devkit": "18.3.0",
40
- "@nx/js": "18.3.0",
39
+ "@nx/devkit": "18.3.2",
40
+ "@nx/js": "18.3.2",
41
41
  "@phenomnomnominal/tsquery": "~5.0.1",
42
42
  "chalk": "^4.1.0",
43
43
  "identity-obj-proxy": "3.0.0",
@@ -48,7 +48,7 @@
48
48
  "resolve.exports": "1.1.0",
49
49
  "tslib": "^2.3.0",
50
50
  "yargs-parser": "21.1.1",
51
- "@nrwl/jest": "18.3.0"
51
+ "@nrwl/jest": "18.3.2"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"
@@ -97,11 +97,11 @@ async function buildJestTargets(configFilePath, projectRoot, options, context) {
97
97
  paths: [(0, path_1.dirname)(jestPath)],
98
98
  // nx-ignore-next-line
99
99
  }));
100
- const context = await Runtime.createContext(config.projectConfig, {
100
+ const jestContext = await Runtime.createContext(config.projectConfig, {
101
101
  maxWorkers: 1,
102
102
  watchman: false,
103
103
  });
104
- const source = new jest.SearchSource(context);
104
+ const source = new jest.SearchSource(jestContext);
105
105
  const specs = await source.getTestPaths(config.globalConfig);
106
106
  const testPaths = new Set(specs.tests.map(({ path }) => path));
107
107
  if (testPaths.size > 0) {
@@ -126,7 +126,7 @@ async function buildJestTargets(configFilePath, projectRoot, options, context) {
126
126
  };
127
127
  targetGroup.push(options.ciTargetName);
128
128
  for (const testPath of testPaths) {
129
- const relativePath = (0, path_1.normalize)((0, path_1.relative)(projectRoot, testPath));
129
+ const relativePath = (0, path_1.normalize)((0, path_1.relative)((0, path_1.join)(context.workspaceRoot, projectRoot), testPath));
130
130
  const targetName = `${options.ciTargetName}--${relativePath}`;
131
131
  dependsOn.push(targetName);
132
132
  targets[targetName] = {