ts-jest 27.1.3 → 27.1.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 +11 -0
- package/dist/compiler/index.js +5 -1
- package/dist/compiler/ts-compiler.js +0 -1
- package/dist/config/config-set.js +2 -1
- package/dist/config/index.js +5 -1
- package/dist/index.js +5 -1
- package/dist/utils/index.js +5 -1
- package/package.json +7 -8
package/.ts-jest-digest
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
606cdd028ccae5bd2e9b9917b4e8ac7f4e76229a
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## [27.1.4](https://github.com/kulshekhar/ts-jest/compare/v27.1.3...v27.1.4) (2022-03-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **compiler:** revert [#3194](https://github.com/kulshekhar/ts-jest/issues/3194) ([#3362](https://github.com/kulshekhar/ts-jest/issues/3362)) ([2b7dffe](https://github.com/kulshekhar/ts-jest/commit/2b7dffeac940f779922c43cefba3f741a3911b49)), closes [#3272](https://github.com/kulshekhar/ts-jest/issues/3272)
|
|
7
|
+
* remove `esbuild` from peer dependency ([#3360](https://github.com/kulshekhar/ts-jest/issues/3360)) ([8c8c1ca](https://github.com/kulshekhar/ts-jest/commit/8c8c1ca615b1edeedc9f4282557c28e82acee543)), closes [#3346](https://github.com/kulshekhar/ts-jest/issues/3346)
|
|
8
|
+
* support Babel config file with `.cjs` extension ([#3361](https://github.com/kulshekhar/ts-jest/issues/3361)) ([5e5ac4a](https://github.com/kulshekhar/ts-jest/commit/5e5ac4ac286bdcce157d0bdc31f3a57202fdbdfe)), closes [#3335](https://github.com/kulshekhar/ts-jest/issues/3335)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
1
12
|
## [27.1.3](https://github.com/kulshekhar/ts-jest/compare/v27.1.2...v27.1.3) (2022-01-14)
|
|
2
13
|
|
|
3
14
|
|
package/dist/compiler/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -181,7 +181,8 @@ var ConfigSet = (function () {
|
|
|
181
181
|
var baseBabelCfg = { cwd: this.cwd };
|
|
182
182
|
if (typeof options.babelConfig === 'string') {
|
|
183
183
|
var babelCfgPath = this.resolvePath(options.babelConfig);
|
|
184
|
-
|
|
184
|
+
var babelFileExtName = (0, path_1.extname)(options.babelConfig);
|
|
185
|
+
if (babelFileExtName === '.js' || babelFileExtName === '.cjs') {
|
|
185
186
|
this.babelConfig = __assign(__assign({}, baseBabelCfg), require(babelCfgPath));
|
|
186
187
|
}
|
|
187
188
|
else {
|
package/dist/config/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/dist/utils/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-jest",
|
|
3
|
-
"version": "27.1.
|
|
3
|
+
"version": "27.1.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"bin": {
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"pretest": "tsc -p tsconfig.spec.json --noEmit && node scripts/prepare-test.js",
|
|
15
15
|
"test": "jest",
|
|
16
16
|
"test-examples": "node scripts/test-examples.js",
|
|
17
|
-
"lint": "
|
|
18
|
-
"lint-fix": "
|
|
17
|
+
"lint": "eslint --ext .js,.ts .",
|
|
18
|
+
"lint-fix": "eslint --fix --ext .js,.ts .",
|
|
19
19
|
"lint-prettier": "prettier '**/*.{yml,yaml,md}' --write",
|
|
20
20
|
"lint-prettier-ci": "prettier '**/*.{yml,yaml,md}' --check",
|
|
21
21
|
"doc": "cd website && npm run start",
|
|
22
22
|
"doc:build": "cd website && npm run build",
|
|
23
|
-
"changelog": "
|
|
23
|
+
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
|
|
24
24
|
"prepare": "npm run build",
|
|
25
25
|
"prepublishOnly": "npm run test",
|
|
26
26
|
"preversion": "npm run test",
|
|
@@ -64,7 +64,6 @@
|
|
|
64
64
|
"@babel/core": ">=7.0.0-beta.0 <8",
|
|
65
65
|
"@types/jest": "^27.0.0",
|
|
66
66
|
"babel-jest": ">=27.0.0 <28",
|
|
67
|
-
"esbuild": "~0.14.0",
|
|
68
67
|
"jest": "^27.0.0",
|
|
69
68
|
"typescript": ">=3.8 <5.0"
|
|
70
69
|
},
|
|
@@ -90,7 +89,7 @@
|
|
|
90
89
|
}
|
|
91
90
|
},
|
|
92
91
|
"devDependencies": {
|
|
93
|
-
"@commitlint/cli": "
|
|
92
|
+
"@commitlint/cli": "16.x",
|
|
94
93
|
"@commitlint/config-angular": "^16.0.0",
|
|
95
94
|
"@jest/transform": "^27.4.2",
|
|
96
95
|
"@jest/types": "^27.4.2",
|
|
@@ -103,7 +102,7 @@
|
|
|
103
102
|
"@types/lodash.memoize": "4.x",
|
|
104
103
|
"@types/lodash.set": "4.x",
|
|
105
104
|
"@types/micromatch": "4.x",
|
|
106
|
-
"@types/node": "
|
|
105
|
+
"@types/node": "17.0.21",
|
|
107
106
|
"@types/node-fetch": "^3.0.3",
|
|
108
107
|
"@types/react": "17.x",
|
|
109
108
|
"@types/rimraf": "^3.0.2",
|
|
@@ -136,7 +135,7 @@
|
|
|
136
135
|
"lodash.set": "^4.3.2",
|
|
137
136
|
"node-fetch": "^3.0.0",
|
|
138
137
|
"prettier": "^2.4.0",
|
|
139
|
-
"typescript": "~4.
|
|
138
|
+
"typescript": "~4.6.2"
|
|
140
139
|
},
|
|
141
140
|
"lint-staged": {
|
|
142
141
|
"*.{ts,tsx,js,jsx}": [
|