ts-jest 29.0.3 → 29.0.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 +1 -1
- package/CHANGELOG.md +10 -0
- package/dist/legacy/ts-jest-transformer.js +8 -8
- package/package.json +16 -16
package/.ts-jest-digest
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
d7ebfa3b6fc584faace1c29e045fdf049e8e9803
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [29.0.4](https://github.com/kulshekhar/ts-jest/compare/v29.0.3...v29.0.4) (2023-01-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **transformer:** don't use cache when `tsJestConfig` is different ([#3966](https://github.com/kulshekhar/ts-jest/issues/3966)) ([a445638](https://github.com/kulshekhar/ts-jest/commit/a445638ca631911e8ab1a896ffdfcd21506ce71a))
|
|
7
|
+
* bump `json5` to `2.2.3` ([#3976](https://github.com/kulshekhar/ts-jest/pull/3976))([b9f7809](https://github.com/kulshekhar/ts-jest/commit/b9f7809948309f92534aeba63f3ffb01cb7dc536))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
## [29.0.3](https://github.com/kulshekhar/ts-jest/compare/v29.0.2...v29.0.3) (2022-09-28)
|
|
2
12
|
|
|
3
13
|
|
|
@@ -122,8 +122,15 @@ 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;
|
|
125
132
|
// try to look-it up by stringified version
|
|
126
|
-
var serializedJestCfg_1 = (0, utils_1.stringify)(
|
|
133
|
+
var serializedJestCfg_1 = (0, utils_1.stringify)(migratedConfig);
|
|
127
134
|
var serializedCcs = TsJestTransformer._cachedConfigSets.find(function (cs) { return cs.jestConfig.serialized === serializedJestCfg_1; });
|
|
128
135
|
if (serializedCcs) {
|
|
129
136
|
// update the object so that we can find it later
|
|
@@ -140,13 +147,6 @@ var TsJestTransformer = /** @class */ (function () {
|
|
|
140
147
|
else {
|
|
141
148
|
// create the new record in the index
|
|
142
149
|
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.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"bin": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"bs-logger": "0.x",
|
|
55
55
|
"fast-json-stable-stringify": "2.x",
|
|
56
56
|
"jest-util": "^29.0.0",
|
|
57
|
-
"json5": "^2.2.
|
|
57
|
+
"json5": "^2.2.3",
|
|
58
58
|
"lodash.memoize": "4.x",
|
|
59
59
|
"make-error": "1.x",
|
|
60
60
|
"semver": "7.x",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@commitlint/cli": "17.x",
|
|
93
|
-
"@commitlint/config-angular": "^17.
|
|
94
|
-
"@jest/transform": "^29.
|
|
95
|
-
"@jest/types": "^29.
|
|
93
|
+
"@commitlint/config-angular": "^17.4.0",
|
|
94
|
+
"@jest/transform": "^29.1.2",
|
|
95
|
+
"@jest/types": "^29.1.2",
|
|
96
96
|
"@types/babel__core": "7.x",
|
|
97
97
|
"@types/cross-spawn": "latest",
|
|
98
98
|
"@types/fs-extra": "latest",
|
|
@@ -101,20 +101,20 @@
|
|
|
101
101
|
"@types/lodash.memoize": "4.x",
|
|
102
102
|
"@types/lodash.set": "4.x",
|
|
103
103
|
"@types/micromatch": "4.x",
|
|
104
|
-
"@types/node": "
|
|
104
|
+
"@types/node": "18.11.18",
|
|
105
105
|
"@types/node-fetch": "^3.0.3",
|
|
106
106
|
"@types/react": "18.x",
|
|
107
107
|
"@types/rimraf": "^3.0.2",
|
|
108
108
|
"@types/semver": "latest",
|
|
109
109
|
"@types/yargs": "latest",
|
|
110
110
|
"@types/yargs-parser": "21.x",
|
|
111
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
112
|
-
"@typescript-eslint/parser": "^5.
|
|
113
|
-
"babel-jest": "^29.
|
|
111
|
+
"@typescript-eslint/eslint-plugin": "^5.48.1",
|
|
112
|
+
"@typescript-eslint/parser": "^5.48.1",
|
|
113
|
+
"babel-jest": "^29.1.2",
|
|
114
114
|
"conventional-changelog-cli": "2.x",
|
|
115
115
|
"cross-spawn": "latest",
|
|
116
|
-
"esbuild": "~0.
|
|
117
|
-
"eslint": "^8.
|
|
116
|
+
"esbuild": "~0.16.16",
|
|
117
|
+
"eslint": "^8.31.0",
|
|
118
118
|
"eslint-config-prettier": "latest",
|
|
119
119
|
"eslint-plugin-import": "latest",
|
|
120
120
|
"eslint-plugin-jest": "latest",
|
|
@@ -122,20 +122,20 @@
|
|
|
122
122
|
"eslint-plugin-prefer-arrow": "latest",
|
|
123
123
|
"eslint-plugin-prettier": "latest",
|
|
124
124
|
"execa": "5.1.1",
|
|
125
|
-
"fs-extra": "
|
|
125
|
+
"fs-extra": "11.x",
|
|
126
126
|
"glob": "^8.0.3",
|
|
127
127
|
"glob-gitignore": "latest",
|
|
128
128
|
"husky": "4.x",
|
|
129
|
-
"jest": "^29.
|
|
129
|
+
"jest": "^29.1.2",
|
|
130
130
|
"jest-snapshot-serializer-raw": "^1.2.0",
|
|
131
131
|
"js-yaml": "latest",
|
|
132
132
|
"json-schema-to-typescript": "^11.0.2",
|
|
133
133
|
"lint-staged": "latest",
|
|
134
134
|
"lodash.camelcase": "^4.3.0",
|
|
135
135
|
"lodash.set": "^4.3.2",
|
|
136
|
-
"node-fetch": "^3.
|
|
137
|
-
"prettier": "^2.
|
|
138
|
-
"typescript": "~4.8.
|
|
136
|
+
"node-fetch": "^3.3.0",
|
|
137
|
+
"prettier": "^2.8.2",
|
|
138
|
+
"typescript": "~4.8.4"
|
|
139
139
|
},
|
|
140
140
|
"lint-staged": {
|
|
141
141
|
"*.{ts,tsx,js,jsx}": [
|