@nx/jest 21.3.4 → 21.3.5

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/migrations.json CHANGED
@@ -114,6 +114,28 @@
114
114
  "alwaysAddToPackageJson": false
115
115
  }
116
116
  }
117
+ },
118
+ "21.3.3": {
119
+ "version": "21.3.3-beta.0",
120
+ "packages": {
121
+ "ts-jest": {
122
+ "version": "~29.4.0",
123
+ "alwaysAddToPackageJson": false
124
+ }
125
+ }
126
+ },
127
+ "21.3.3-jest-util": {
128
+ "version": "21.3.3-beta.3",
129
+ "requires": {
130
+ "jest": ">=30.0.0 <31.0.0",
131
+ "ts-jest": ">=29.4.0"
132
+ },
133
+ "packages": {
134
+ "jest-util": {
135
+ "version": "~30.0.0",
136
+ "addToPackageJson": "devDependencies"
137
+ }
138
+ }
117
139
  }
118
140
  }
119
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/jest",
3
- "version": "21.3.4",
3
+ "version": "21.3.5",
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": "^30.0.2",
39
39
  "@jest/test-result": "^30.0.2",
40
- "@nx/devkit": "21.3.4",
41
- "@nx/js": "21.3.4",
40
+ "@nx/devkit": "21.3.5",
41
+ "@nx/js": "21.3.5",
42
42
  "@phenomnomnominal/tsquery": "~5.0.1",
43
43
  "identity-obj-proxy": "3.0.0",
44
44
  "jest-config": "^30.0.2",
@@ -12,6 +12,8 @@ function ensureDependencies(tree, options) {
12
12
  // jest will throw an error if it's not installed
13
13
  // even if not using it in overriding transformers
14
14
  'ts-jest': versions_1.tsJestVersion,
15
+ // peer dependency of ts-jest
16
+ 'jest-util': versions_1.jestVersion,
15
17
  };
16
18
  if (options.testEnvironment !== 'none') {
17
19
  devDeps[`jest-environment-${options.testEnvironment}`] = versions_1.jestVersion;
@@ -7,7 +7,6 @@ const jest_1 = require("jest");
7
7
  const jest_config_1 = require("jest-config");
8
8
  const jest_runtime_1 = require("jest-runtime");
9
9
  const path_1 = require("path");
10
- const posix_1 = require("node:path/posix");
11
10
  const matcherAliasesMap = new Map([
12
11
  ['toBeCalled', 'toHaveBeenCalled'],
13
12
  ['toBeCalledTimes', 'toHaveBeenCalledTimes'],
@@ -55,7 +54,7 @@ async function getTestFilePaths(tree) {
55
54
  const source = new jest_1.SearchSource(jestContext);
56
55
  const specs = await source.getTestPaths(config.globalConfig, config.projectConfig);
57
56
  for (const testPath of specs.tests) {
58
- testFilePaths.add((0, posix_1.relative)(tree.root, testPath.path));
57
+ testFilePaths.add(path_1.posix.normalize((0, path_1.relative)(tree.root, testPath.path)));
59
58
  }
60
59
  }
61
60
  return Array.from(testFilePaths);