ts-jest 29.3.3 → 29.3.4

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
+ dfc4e7710788a7a7f79e90e8d15aee27450846bd
package/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## [29.3.4](https://github.com/kulshekhar/ts-jest/compare/v29.3.3...v29.3.4) (2025-05-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * fix: fix `TsJestTransformerOptions` type ([3b11e29](https://github.com/kulshekhar/ts-jest/commit/3b11e29)), closes [#4247](https://github.com/kulshekhar/ts-jest/issues/4247)
7
+ * fix(cli): fix wrong path for preset creator fns ([249eb2c](https://github.com/kulshekhar/ts-jest/commit/249eb2c))
8
+ * fix(config): disable `rewriteRelativeImportExtensions` always ([9b1f472](https://github.com/kulshekhar/ts-jest/commit/9b1f472)), closes [#4855](https://github.com/kulshekhar/ts-jest/issues/4855)
9
+
10
+
11
+
1
12
  ## [29.3.3](https://github.com/kulshekhar/ts-jest/compare/v29.3.2...v29.3.3) (2025-05-14)
2
13
 
3
14
 
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-jest",
3
- "version": "29.3.3",
3
+ "version": "29.3.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -118,7 +118,7 @@
118
118
  "eslint-config-prettier": "^10.1.5",
119
119
  "eslint-plugin-import": "^2.31.0",
120
120
  "eslint-plugin-jest": "^28.11.0",
121
- "eslint-plugin-jsdoc": "^50.6.14",
121
+ "eslint-plugin-jsdoc": "^50.6.17",
122
122
  "eslint-plugin-prettier": "^4.2.1",
123
123
  "execa": "5.1.1",
124
124
  "fs-extra": "^11.3.0",
@@ -129,10 +129,10 @@
129
129
  "jest": "^29.7.0",
130
130
  "js-yaml": "^4.1.0",
131
131
  "lint-staged": "^15.5.2",
132
- "memfs": "^4.17.1",
132
+ "memfs": "^4.17.2",
133
133
  "prettier": "^2.8.8",
134
134
  "rimraf": "^5.0.10",
135
- "typescript": "~5.5.4",
135
+ "typescript": "~5.8.3",
136
136
  "typescript-eslint": "^8.32.1"
137
137
  },
138
138
  "engines": {