ts-jest 29.4.3 → 29.4.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
|
-
|
|
1
|
+
3113ed1dffc76f39434f1785e4e4ceabf4af1f0b
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [29.4.4](https://github.com/kulshekhar/ts-jest/compare/v29.4.3...v29.4.4) (2025-09-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* revert **29.4.3** changes ([25cb706](https://github.com/kulshekhar/ts-jest/commit/25cb7065528f7a43b6c6ee5bb33fc3f940932ccd)), closes [#5049](https://github.com/kulshekhar/ts-jest/issues/5049)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
## [29.4.3](https://github.com/kulshekhar/ts-jest/compare/v29.4.2...v29.4.3) (2025-09-17)
|
|
2
11
|
|
|
3
12
|
|
|
@@ -140,8 +140,8 @@ class TsCompiler {
|
|
|
140
140
|
getCompiledOutput(fileContent, fileName, options) {
|
|
141
141
|
const isEsmMode = this.configSet.useESM && options.supportsStaticESM;
|
|
142
142
|
this._compilerOptions = this.fixupCompilerOptionsForModuleKind(this._initialCompilerOptions, isEsmMode);
|
|
143
|
-
if ((0, transpile_module_1.isModernNodeModuleKind)(this._initialCompilerOptions.module)
|
|
144
|
-
this._logger.warn("Using hybrid module kind (Node16/18/Next) is only supported in \"
|
|
143
|
+
if (!this._initialCompilerOptions.isolatedModules && (0, transpile_module_1.isModernNodeModuleKind)(this._initialCompilerOptions.module)) {
|
|
144
|
+
this._logger.warn("Using hybrid module kind (Node16/18/Next) is only supported in \"isolatedModules: true\". Please set \"isolatedModules: true\" in your tsconfig.json." /* Helps.UsingModernNodeResolution */);
|
|
145
145
|
}
|
|
146
146
|
const moduleKind = this._initialCompilerOptions.module;
|
|
147
147
|
const currentModuleKind = this._compilerOptions.module;
|
|
@@ -216,9 +216,17 @@ class ConfigSet {
|
|
|
216
216
|
this._matchTestFilePath = (0, jest_util_1.globsToMatcher)(this._matchablePatterns.filter((pattern) => typeof pattern === 'string'));
|
|
217
217
|
// isolatedModules
|
|
218
218
|
if (options.isolatedModules) {
|
|
219
|
-
this.
|
|
219
|
+
this.parsedTsConfig.options.isolatedModules = true;
|
|
220
|
+
if (this.tsconfigFilePath) {
|
|
221
|
+
this.logger.warn((0, messages_1.interpolate)("\n The \"ts-jest\" config option \"isolatedModules\" is deprecated and will be removed in v30.0.0. Please use \"isolatedModules: true\" in {{tsconfigFilePath}} instead, see https://www.typescriptlang.org/tsconfig/#isolatedModules\n " /* Deprecations.IsolatedModulesWithTsconfigPath */, {
|
|
222
|
+
tsconfigFilePath: this.tsconfigFilePath,
|
|
223
|
+
}));
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
this.logger.warn("\n The \"ts-jest\" config option \"isolatedModules\" is deprecated and will be removed in v30.0.0. Please use \"isolatedModules: true\", see https://www.typescriptlang.org/tsconfig/#isolatedModules\n " /* Deprecations.IsolatedModulesWithoutTsconfigPath */);
|
|
227
|
+
}
|
|
220
228
|
}
|
|
221
|
-
this.isolatedModules = options.isolatedModules ??
|
|
229
|
+
this.isolatedModules = this.parsedTsConfig.options.isolatedModules ?? false;
|
|
222
230
|
this._resolveTsCacheDir();
|
|
223
231
|
}
|
|
224
232
|
/**
|
package/dist/types.d.ts
CHANGED
|
@@ -39,15 +39,13 @@ export type TsJestGlobalOptions = Config.TransformerConfig[1] & {
|
|
|
39
39
|
*/
|
|
40
40
|
tsconfig?: boolean | string | RawCompilerOptions | TsConfigCompilerOptionsJson;
|
|
41
41
|
/**
|
|
42
|
-
* @deprecated use {@link
|
|
43
|
-
*/
|
|
44
|
-
isolatedModules?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Compiles files using {@link _ts.transpileModule})
|
|
42
|
+
* @deprecated use {@link TsConfigCompilerOptionsJson.isolatedModules} instead
|
|
47
43
|
*
|
|
48
|
-
*
|
|
44
|
+
* Compiles files as isolated modules (disables some features)
|
|
45
|
+
*
|
|
46
|
+
* @default `undefined` (disables transpiling files with {@link _ts.transpileModule})
|
|
49
47
|
*/
|
|
50
|
-
|
|
48
|
+
isolatedModules?: boolean;
|
|
51
49
|
/**
|
|
52
50
|
* Compiler to use
|
|
53
51
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-jest",
|
|
3
|
-
"version": "29.4.
|
|
3
|
+
"version": "29.4.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@types/lodash.memoize": "^4.1.9",
|
|
108
108
|
"@types/lodash.set": "^4.3.9",
|
|
109
109
|
"@types/micromatch": "^4.0.9",
|
|
110
|
-
"@types/node": "20.19.
|
|
110
|
+
"@types/node": "20.19.17",
|
|
111
111
|
"@types/semver": "^7.7.1",
|
|
112
112
|
"@types/yargs": "^17.0.33",
|
|
113
113
|
"@types/yargs-parser": "21.0.3",
|