@nx/jest 23.0.0-rc.4 → 23.1.0-beta.0
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/README.md +1 -2
- package/dist/src/generators/configuration/files/common/tsconfig.spec.json__tmpl__ +1 -1
- package/dist/src/generators/configuration/lib/create-files.js +3 -0
- package/dist/src/utils/config/config-file.d.ts +2 -2
- package/dist/src/utils/versions.js +2 -2
- package/migrations.json +27 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -7,13 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
<div style="text-align: center;">
|
|
9
9
|
|
|
10
|
-
[](https://circleci.com/gh/nrwl/nx)
|
|
11
10
|
[]()
|
|
12
11
|
[](https://www.npmjs.com/package/nx)
|
|
13
12
|
[]()
|
|
14
13
|
[](http://commitizen.github.io/cz-cli/)
|
|
15
|
-
[](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
16
14
|
[](https://go.nx.dev/community)
|
|
15
|
+
[](https://nx.dev/docs/features/ci-features/sandboxing)
|
|
17
16
|
|
|
18
17
|
</div>
|
|
19
18
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"outDir": "<%= outDir %>",<% if (module) { %>
|
|
5
5
|
"module": "<%= module %>",<% } if (module === 'commonjs') { %>
|
|
6
|
-
"moduleResolution": "
|
|
6
|
+
"moduleResolution": "<%= moduleResolution %>",<% } if (supportTsx) { %>
|
|
7
7
|
"jsx": "react-jsx",<% } %>"types": ["jest", "node"]
|
|
8
8
|
},<% if(setupFile !== 'none') { %>
|
|
9
9
|
"files": ["src/test-setup.ts"],<% } %>
|
|
@@ -67,6 +67,9 @@ function createFiles(tree, options, presetExt) {
|
|
|
67
67
|
module: !options.isTsSolutionSetup || transformer === 'ts-jest'
|
|
68
68
|
? 'commonjs'
|
|
69
69
|
: undefined,
|
|
70
|
+
moduleResolution: !options.isTsSolutionSetup || transformer === 'ts-jest'
|
|
71
|
+
? (0, internal_1.getTsConfigModuleResolution)(tree)
|
|
72
|
+
: undefined,
|
|
70
73
|
});
|
|
71
74
|
if (options.setupFile !== 'angular') {
|
|
72
75
|
(0, devkit_1.generateFiles)(tree, (0, path_1.join)(__dirname, options.isTsSolutionSetup
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Tree } from '@nx/devkit';
|
|
2
|
-
export declare const jestConfigExtensions: readonly [
|
|
2
|
+
export declare const jestConfigExtensions: readonly ['js', 'ts', 'mjs', 'cjs', 'mts', 'cts'];
|
|
3
3
|
export type JestConfigExtension = (typeof jestConfigExtensions)[number];
|
|
4
|
-
export declare const jestPresetExtensions: readonly [
|
|
4
|
+
export declare const jestPresetExtensions: readonly ['js', 'cjs', 'mjs'];
|
|
5
5
|
export type JestPresetExtension = (typeof jestPresetExtensions)[number];
|
|
6
6
|
export declare function getPresetExt(tree: Tree): JestPresetExtension;
|
|
7
7
|
export declare function findRootJestConfig(tree: Tree): string | null;
|
|
@@ -25,7 +25,7 @@ exports.latestVersions = {
|
|
|
25
25
|
// ts-jest has not shipped a v30 — 29.x is its latest line and its peers
|
|
26
26
|
// already span jest 29 and 30 (`jest: '^29.0.0 || ^30.0.0'`), so a jest-30
|
|
27
27
|
// workspace correctly stays on ts-jest 29.x.
|
|
28
|
-
tsJestVersion: '^29.4.
|
|
28
|
+
tsJestVersion: '^29.4.7',
|
|
29
29
|
tslibVersion: '^2.3.0',
|
|
30
30
|
swcJestVersion: '~0.2.38',
|
|
31
31
|
typesNodeVersion: '^22.0.0',
|
|
@@ -38,7 +38,7 @@ exports.versionMap = {
|
|
|
38
38
|
jestVersion: '^29.7.0',
|
|
39
39
|
babelJestVersion: '^29.7.0',
|
|
40
40
|
jestTypesVersion: '^29.5.12',
|
|
41
|
-
tsJestVersion: '^29.
|
|
41
|
+
tsJestVersion: '^29.4.7',
|
|
42
42
|
tslibVersion: '^2.3.0',
|
|
43
43
|
swcJestVersion: '~0.2.36',
|
|
44
44
|
typesNodeVersion: '18.16.9',
|
package/migrations.json
CHANGED
|
@@ -229,6 +229,33 @@
|
|
|
229
229
|
"alwaysAddToPackageJson": false
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
+
},
|
|
233
|
+
"23.1.0-ts-jest": {
|
|
234
|
+
"version": "23.1.0-beta.0",
|
|
235
|
+
"requires": {
|
|
236
|
+
"ts-jest": ">=29.0.0 <29.4.7"
|
|
237
|
+
},
|
|
238
|
+
"packages": {
|
|
239
|
+
"ts-jest": {
|
|
240
|
+
"version": "^29.4.7",
|
|
241
|
+
"alwaysAddToPackageJson": false
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"23.1.0-jest-preset-angular": {
|
|
246
|
+
"version": "23.1.0-beta.0",
|
|
247
|
+
"requires": {
|
|
248
|
+
"@angular/compiler-cli": ">=22.0.0 <23.0.0",
|
|
249
|
+
"@angular/core": ">=22.0.0 <23.0.0",
|
|
250
|
+
"@angular/platform-browser": ">=22.0.0 <23.0.0",
|
|
251
|
+
"jest": "^30.0.0"
|
|
252
|
+
},
|
|
253
|
+
"packages": {
|
|
254
|
+
"jest-preset-angular": {
|
|
255
|
+
"version": "~17.0.0",
|
|
256
|
+
"alwaysAddToPackageJson": false
|
|
257
|
+
}
|
|
258
|
+
}
|
|
232
259
|
}
|
|
233
260
|
}
|
|
234
261
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/jest",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.1.0-beta.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -116,11 +116,11 @@
|
|
|
116
116
|
"semver": "^7.6.3",
|
|
117
117
|
"tslib": "^2.3.0",
|
|
118
118
|
"yargs-parser": "21.1.1",
|
|
119
|
-
"@nx/devkit": "23.
|
|
120
|
-
"@nx/js": "23.
|
|
119
|
+
"@nx/devkit": "23.1.0-beta.0",
|
|
120
|
+
"@nx/js": "23.1.0-beta.0"
|
|
121
121
|
},
|
|
122
122
|
"devDependencies": {
|
|
123
|
-
"nx": "23.
|
|
123
|
+
"nx": "23.1.0-beta.0"
|
|
124
124
|
},
|
|
125
125
|
"publishConfig": {
|
|
126
126
|
"access": "public"
|