ts-jest 29.4.5 → 29.4.6

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
- 95c19722f9888efe1c4d137d0f48593d329ceeaf
1
+ 9c5723b3a80e42c2cca16e1fcb1e90b882759305
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [29.4.6](https://github.com/kulshekhar/ts-jest/compare/v29.4.5...v29.4.6) (2025-12-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * log hybrid module as warning instead of failing tests ([#5144](https://github.com/kulshekhar/ts-jest/issues/5144)) ([528d37c](https://github.com/kulshekhar/ts-jest/commit/528d37c125a392a4a6e44a1bf399943410298390)), closes [#5130](https://github.com/kulshekhar/ts-jest/issues/5130)
7
+
8
+
9
+
1
10
  ## [29.4.5](https://github.com/kulshekhar/ts-jest/compare/v29.4.4...v29.4.5) (2025-10-10)
2
11
 
3
12
 
@@ -155,14 +155,16 @@ class TsCompiler {
155
155
  const output = this._languageService.getEmitOutput(fileName);
156
156
  const diagnostics = this.getDiagnostics(fileName);
157
157
  if ((0, transpile_module_1.isModernNodeModuleKind)(this._initialCompilerOptions.module)) {
158
- diagnostics.push({
159
- category: this._ts.DiagnosticCategory.Message,
160
- code: utils_1.TsJestDiagnosticCodes.ModernNodeModule,
161
- messageText: messages_1.Helps.UsingModernNodeResolution,
162
- file: undefined,
163
- start: undefined,
164
- length: undefined,
165
- });
158
+ this.configSet.raiseDiagnostics([
159
+ {
160
+ category: this._ts.DiagnosticCategory.Message,
161
+ code: utils_1.TsJestDiagnosticCodes.ModernNodeModule,
162
+ messageText: messages_1.Helps.UsingModernNodeResolution,
163
+ file: undefined,
164
+ start: undefined,
165
+ length: undefined,
166
+ },
167
+ ]);
166
168
  }
167
169
  if (!isEsmMode && diagnostics.length) {
168
170
  this.configSet.raiseDiagnostics(diagnostics, fileName, this._logger);
@@ -41,7 +41,9 @@ function getNewLineCharacter(options) {
41
41
  }
42
42
  }
43
43
  const isModernNodeModuleKind = (module) => {
44
- return module ? [typescript_1.default.ModuleKind.Node16, /* ModuleKind.Node18 */ 101, typescript_1.default.ModuleKind.NodeNext].includes(module) : false;
44
+ return module
45
+ ? [typescript_1.default.ModuleKind.Node16, /* ModuleKind.Node18 */ 101, /* ModuleKind.Node20 */ 102, typescript_1.default.ModuleKind.NodeNext].includes(module)
46
+ : false;
45
47
  };
46
48
  exports.isModernNodeModuleKind = isModernNodeModuleKind;
47
49
  const shouldCheckProjectPkgJsonContent = (fileName, moduleKind) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-jest",
3
- "version": "29.4.5",
3
+ "version": "29.4.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -93,9 +93,9 @@
93
93
  "devDependencies": {
94
94
  "@commitlint/cli": "^19.8.1",
95
95
  "@commitlint/config-angular": "^19.8.1",
96
- "@eslint/compat": "^1.4.0",
96
+ "@eslint/compat": "^1.4.1",
97
97
  "@eslint/eslintrc": "^3.3.1",
98
- "@eslint/js": "^9.37.0",
98
+ "@eslint/js": "^9.39.1",
99
99
  "@jest/globals": "^30.2.0",
100
100
  "@jest/transform": "^30.2.0",
101
101
  "@jest/types": "^30.2.0",
@@ -106,18 +106,18 @@
106
106
  "@types/lodash.camelcase": "^4.3.9",
107
107
  "@types/lodash.memoize": "^4.1.9",
108
108
  "@types/lodash.set": "^4.3.9",
109
- "@types/micromatch": "^4.0.9",
110
- "@types/node": "20.19.20",
109
+ "@types/micromatch": "^4.0.10",
110
+ "@types/node": "20.19.25",
111
111
  "@types/semver": "^7.7.1",
112
- "@types/yargs": "^17.0.33",
112
+ "@types/yargs": "^17.0.35",
113
113
  "@types/yargs-parser": "21.0.3",
114
- "@typescript-eslint/eslint-plugin": "^8.46.0",
115
- "@typescript-eslint/parser": "^8.46.0",
114
+ "@typescript-eslint/eslint-plugin": "^8.48.0",
115
+ "@typescript-eslint/parser": "^8.48.0",
116
116
  "babel-jest": "^30.2.0",
117
- "conventional-changelog-angular": "^8.0.0",
117
+ "conventional-changelog-angular": "^8.1.0",
118
118
  "conventional-changelog": "^7.1.1",
119
- "esbuild": "~0.25.10",
120
- "eslint": "^9.37.0",
119
+ "esbuild": "~0.27.0",
120
+ "eslint": "^9.39.1",
121
121
  "eslint-config-prettier": "^10.1.8",
122
122
  "eslint-plugin-import": "^2.32.0",
123
123
  "eslint-plugin-jest": "^28.14.0",
@@ -126,17 +126,17 @@
126
126
  "execa": "5.1.1",
127
127
  "fast-glob": "^3.3.3",
128
128
  "fs-extra": "^11.3.2",
129
- "globals": "^16.4.0",
129
+ "globals": "^16.5.0",
130
130
  "husky": "^9.1.7",
131
131
  "jest": "^30.2.0",
132
- "js-yaml": "^4.1.0",
132
+ "js-yaml": "^4.1.1",
133
133
  "lint-staged": "^15.5.2",
134
- "memfs": "^4.49.0",
134
+ "memfs": "^4.51.0",
135
135
  "prettier": "^2.8.8",
136
136
  "rimraf": "^5.0.10",
137
137
  "ts-node": "^10.9.2",
138
138
  "typescript": "~5.9.3",
139
- "typescript-eslint": "^8.46.0"
139
+ "typescript-eslint": "^8.48.0"
140
140
  },
141
141
  "engines": {
142
142
  "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0"