ts-jest 29.0.4 → 29.0.5
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 +1 -1
- package/CHANGELOG.md +9 -0
- package/dist/legacy/ts-jest-transformer.js +8 -8
- package/package.json +3 -3
package/.ts-jest-digest
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
c6798b4edfd61cc5fce7600e2bef31a7f377bf22
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [29.0.5](https://github.com/kulshekhar/ts-jest/compare/v29.0.4...v29.0.5) (2023-01-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Reverts
|
|
5
|
+
|
|
6
|
+
* Revert "fix(transformer): don't use cache when `tsJestConfig` is different (#3966)" ([185eb18](https://github.com/kulshekhar/ts-jest/commit/185eb189d7076c717a107066817d2d6959a8fe39)), closes [#3966](https://github.com/kulshekhar/ts-jest/issues/3966)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
## [29.0.4](https://github.com/kulshekhar/ts-jest/compare/v29.0.3...v29.0.4) (2023-01-10)
|
|
2
11
|
|
|
3
12
|
|
|
@@ -122,15 +122,8 @@ var TsJestTransformer = /** @class */ (function () {
|
|
|
122
122
|
configSet = ccs.configSet;
|
|
123
123
|
}
|
|
124
124
|
else {
|
|
125
|
-
if ((_a = config.globals) === null || _a === void 0 ? void 0 : _a['ts-jest']) {
|
|
126
|
-
this._logger.warn("Define `ts-jest` config under `globals` is deprecated. Please do\ntransform: {\n <transform_regex>: ['ts-jest', { /* ts-jest config goes here in Jest */ }],\n}," /* Deprecations.GlobalsTsJestConfigOption */);
|
|
127
|
-
}
|
|
128
|
-
var jestGlobalsConfig = (_b = config.globals) !== null && _b !== void 0 ? _b : {};
|
|
129
|
-
var tsJestGlobalsConfig = (_c = jestGlobalsConfig['ts-jest']) !== null && _c !== void 0 ? _c : {};
|
|
130
|
-
var migratedConfig = this.tsJestConfig
|
|
131
|
-
? __assign(__assign({}, config), { globals: __assign(__assign({}, jestGlobalsConfig), { 'ts-jest': __assign(__assign({}, tsJestGlobalsConfig), this.tsJestConfig) }) }) : config;
|
|
132
125
|
// try to look-it up by stringified version
|
|
133
|
-
var serializedJestCfg_1 = (0, utils_1.stringify)(
|
|
126
|
+
var serializedJestCfg_1 = (0, utils_1.stringify)(config);
|
|
134
127
|
var serializedCcs = TsJestTransformer._cachedConfigSets.find(function (cs) { return cs.jestConfig.serialized === serializedJestCfg_1; });
|
|
135
128
|
if (serializedCcs) {
|
|
136
129
|
// update the object so that we can find it later
|
|
@@ -147,6 +140,13 @@ var TsJestTransformer = /** @class */ (function () {
|
|
|
147
140
|
else {
|
|
148
141
|
// create the new record in the index
|
|
149
142
|
this._logger.info('no matching config-set found, creating a new one');
|
|
143
|
+
if ((_a = config.globals) === null || _a === void 0 ? void 0 : _a['ts-jest']) {
|
|
144
|
+
this._logger.warn("Define `ts-jest` config under `globals` is deprecated. Please do\ntransform: {\n <transform_regex>: ['ts-jest', { /* ts-jest config goes here in Jest */ }],\n}," /* Deprecations.GlobalsTsJestConfigOption */);
|
|
145
|
+
}
|
|
146
|
+
var jestGlobalsConfig = (_b = config.globals) !== null && _b !== void 0 ? _b : {};
|
|
147
|
+
var tsJestGlobalsConfig = (_c = jestGlobalsConfig['ts-jest']) !== null && _c !== void 0 ? _c : {};
|
|
148
|
+
var migratedConfig = this.tsJestConfig
|
|
149
|
+
? __assign(__assign({}, config), { globals: __assign(__assign({}, jestGlobalsConfig), { 'ts-jest': __assign(__assign({}, tsJestGlobalsConfig), this.tsJestConfig) }) }) : config;
|
|
150
150
|
configSet = this._createConfigSet(migratedConfig);
|
|
151
151
|
var jest_1 = __assign({}, migratedConfig);
|
|
152
152
|
// we need to remove some stuff from jest config
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-jest",
|
|
3
|
-
"version": "29.0.
|
|
3
|
+
"version": "29.0.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"bin": {
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@commitlint/cli": "17.x",
|
|
93
|
-
"@commitlint/config-angular": "^17.4.
|
|
93
|
+
"@commitlint/config-angular": "^17.4.2",
|
|
94
94
|
"@jest/transform": "^29.1.2",
|
|
95
95
|
"@jest/types": "^29.1.2",
|
|
96
96
|
"@types/babel__core": "7.x",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"babel-jest": "^29.1.2",
|
|
114
114
|
"conventional-changelog-cli": "2.x",
|
|
115
115
|
"cross-spawn": "latest",
|
|
116
|
-
"esbuild": "~0.16.
|
|
116
|
+
"esbuild": "~0.16.17",
|
|
117
117
|
"eslint": "^8.31.0",
|
|
118
118
|
"eslint-config-prettier": "latest",
|
|
119
119
|
"eslint-plugin-import": "latest",
|