ts-jest 29.3.3 → 29.4.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/.ts-jest-digest CHANGED
@@ -1 +1 @@
1
- 3bff79d4be2f3922caba32c80e86bbe8a1a8a719
1
+ f80537ea4534af72d55ea38f700d980529562be2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## [29.4.0](https://github.com/kulshekhar/ts-jest/compare/v29.3.4...v29.4.0) (2025-06-11)
2
+
3
+
4
+ ### Features
5
+
6
+ * feat: support Jest 30 ([84e093e](https://github.com/kulshekhar/ts-jest/commit/84e093e))
7
+
8
+
9
+
10
+ ## [29.3.4](https://github.com/kulshekhar/ts-jest/compare/v29.3.3...v29.3.4) (2025-05-16)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * fix: fix `TsJestTransformerOptions` type ([3b11e29](https://github.com/kulshekhar/ts-jest/commit/3b11e29)), closes [#4247](https://github.com/kulshekhar/ts-jest/issues/4247)
16
+ * fix(cli): fix wrong path for preset creator fns ([249eb2c](https://github.com/kulshekhar/ts-jest/commit/249eb2c))
17
+ * fix(config): disable `rewriteRelativeImportExtensions` always ([9b1f472](https://github.com/kulshekhar/ts-jest/commit/9b1f472)), closes [#4855](https://github.com/kulshekhar/ts-jest/issues/4855)
18
+
19
+
20
+
1
21
  ## [29.3.3](https://github.com/kulshekhar/ts-jest/compare/v29.3.2...v29.3.3) (2025-05-14)
2
22
 
3
23
 
@@ -14,9 +14,9 @@ const path_1 = require("path");
14
14
  const ejs_1 = __importDefault(require("ejs"));
15
15
  const json5_1 = require("json5");
16
16
  const create_jest_preset_1 = require("../../presets/create-jest-preset");
17
- const JEST_CONFIG_EJS_TEMPLATE = `const { <%= presetCreatorFn %> } = require("ts-jest/presets")
17
+ const JEST_CONFIG_EJS_TEMPLATE = `const { <%= presetCreatorFn %> } = require("ts-jest");
18
18
 
19
- const tsJestTransformCfg = <%= presetCreatorFn %>(<%- transformOpts %>).transform
19
+ const tsJestTransformCfg = <%= presetCreatorFn %>(<%- transformOpts %>).transform;
20
20
 
21
21
  /** @type {import("jest").Config} **/
22
22
  <%= exportKind %> {
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -174,6 +184,7 @@ class ConfigSet {
174
184
  emitDeclarationOnly: undefined,
175
185
  sourceRoot: undefined,
176
186
  tsBuildInfoFile: undefined,
187
+ rewriteRelativeImportExtensions: false,
177
188
  };
178
189
  /**
179
190
  * @internal
package/dist/types.d.ts CHANGED
@@ -23,7 +23,7 @@ export interface ConfigCustomTransformer {
23
23
  /**
24
24
  * @deprecated use {@link TsJestTransformerOptions} instead
25
25
  */
26
- export interface TsJestGlobalOptions {
26
+ export type TsJestGlobalOptions = Config.TransformerConfig[1] & {
27
27
  /**
28
28
  * Compiler options. It can be:
29
29
  * - `true` (or `undefined`, it's the default): use default tsconfig file
@@ -111,7 +111,7 @@ export interface TsJestGlobalOptions {
111
111
  * `supportsStaticESM` true which is passed into Jest transformer
112
112
  */
113
113
  useESM?: boolean;
114
- }
114
+ };
115
115
  /**
116
116
  * For transformers which extends `ts-jest`
117
117
  * @deprecated use `JestConfigWithTsJest` instead
@@ -142,8 +142,8 @@ export type TsJestTransformerOptions = TsJestGlobalOptions;
142
142
  export type TsJestTransformOptions = TransformOptions<TsJestTransformerOptions>;
143
143
  export interface JestConfigWithTsJest extends Omit<Config.InitialOptions, 'transform'> {
144
144
  transform?: {
145
- [regex: string]: 'ts-jest' | 'ts-jest/legacy' | ['ts-jest', TsJestTransformerOptions] | ['ts-jest/legacy', TsJestTransformerOptions] | string | Config.TransformerConfig;
146
- };
145
+ [regex: string]: 'ts-jest' | 'ts-jest/legacy' | ['ts-jest', TsJestTransformerOptions] | ['ts-jest/legacy', TsJestTransformerOptions];
146
+ } | Config.InitialOptions['transform'];
147
147
  }
148
148
  export type StringMap = Map<string, string>;
149
149
  export interface DepGraphInfo {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-jest",
3
- "version": "29.3.3",
3
+ "version": "29.4.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -54,7 +54,6 @@
54
54
  "bs-logger": "^0.2.6",
55
55
  "ejs": "^3.1.10",
56
56
  "fast-json-stable-stringify": "^2.1.0",
57
- "jest-util": "^29.0.0",
58
57
  "json5": "^2.2.3",
59
58
  "lodash.memoize": "^4.1.2",
60
59
  "make-error": "^1.3.6",
@@ -64,10 +63,11 @@
64
63
  },
65
64
  "peerDependencies": {
66
65
  "@babel/core": ">=7.0.0-beta.0 <8",
67
- "@jest/transform": "^29.0.0",
68
- "@jest/types": "^29.0.0",
69
- "babel-jest": "^29.0.0",
70
- "jest": "^29.0.0",
66
+ "@jest/transform": "^29.0.0 || ^30.0.0",
67
+ "@jest/types": "^29.0.0 || ^30.0.0",
68
+ "babel-jest": "^29.0.0 || ^30.0.0",
69
+ "jest": "^29.0.0 || ^30.0.0",
70
+ "jest-util": "^29.0.0 || ^30.0.0",
71
71
  "typescript": ">=4.3 <6"
72
72
  },
73
73
  "peerDependenciesMeta": {
@@ -85,6 +85,9 @@
85
85
  },
86
86
  "esbuild": {
87
87
  "optional": true
88
+ },
89
+ "jest-util": {
90
+ "optional": true
88
91
  }
89
92
  },
90
93
  "devDependencies": {
@@ -92,10 +95,10 @@
92
95
  "@commitlint/config-angular": "^19.8.1",
93
96
  "@eslint/compat": "^1.2.9",
94
97
  "@eslint/eslintrc": "^3.3.1",
95
- "@eslint/js": "^9.26.0",
96
- "@jest/globals": "^29.7.0",
97
- "@jest/transform": "^29.7.0",
98
- "@jest/types": "^29.6.3",
98
+ "@eslint/js": "^9.28.0",
99
+ "@jest/globals": "^30.0.0",
100
+ "@jest/transform": "^30.0.0",
101
+ "@jest/types": "^30.0.0",
99
102
  "@types/babel__core": "^7.20.5",
100
103
  "@types/ejs": "^3.1.5",
101
104
  "@types/fs-extra": "^11.0.4",
@@ -105,35 +108,36 @@
105
108
  "@types/lodash.memoize": "^4.1.9",
106
109
  "@types/lodash.set": "^4.3.9",
107
110
  "@types/micromatch": "^4.0.9",
108
- "@types/node": "20.17.47",
111
+ "@types/node": "20.19.0",
109
112
  "@types/semver": "^7.7.0",
110
113
  "@types/yargs": "^17.0.33",
111
114
  "@types/yargs-parser": "21.0.3",
112
- "@typescript-eslint/eslint-plugin": "^8.32.1",
113
- "@typescript-eslint/parser": "^8.32.1",
114
- "babel-jest": "^29.7.0",
115
+ "@typescript-eslint/eslint-plugin": "^8.34.0",
116
+ "@typescript-eslint/parser": "^8.34.0",
117
+ "babel-jest": "^30.0.0",
115
118
  "conventional-changelog-cli": "^5.0.0",
116
- "esbuild": "~0.25.4",
117
- "eslint": "^9.26.0",
119
+ "esbuild": "~0.25.5",
120
+ "eslint": "^9.28.0",
118
121
  "eslint-config-prettier": "^10.1.5",
119
122
  "eslint-plugin-import": "^2.31.0",
120
- "eslint-plugin-jest": "^28.11.0",
121
- "eslint-plugin-jsdoc": "^50.6.14",
123
+ "eslint-plugin-jest": "^28.13.3",
124
+ "eslint-plugin-jsdoc": "^50.8.0",
122
125
  "eslint-plugin-prettier": "^4.2.1",
123
126
  "execa": "5.1.1",
124
127
  "fs-extra": "^11.3.0",
125
- "glob": "^10.2.6",
128
+ "glob": "^11.0.2",
126
129
  "glob-gitignore": "^1.0.15",
127
- "globals": "^16.1.0",
130
+ "globals": "^16.2.0",
128
131
  "husky": "^9.1.7",
129
- "jest": "^29.7.0",
132
+ "jest": "^30.0.0",
130
133
  "js-yaml": "^4.1.0",
131
134
  "lint-staged": "^15.5.2",
132
- "memfs": "^4.17.1",
135
+ "memfs": "^4.17.2",
133
136
  "prettier": "^2.8.8",
134
137
  "rimraf": "^5.0.10",
135
- "typescript": "~5.5.4",
136
- "typescript-eslint": "^8.32.1"
138
+ "ts-node": "^10.9.2",
139
+ "typescript": "~5.8.3",
140
+ "typescript-eslint": "^8.34.0"
137
141
  },
138
142
  "engines": {
139
143
  "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0"