@commercetools-frontend/jest-preset-mc-app 20.10.1 → 20.10.7
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/CHANGELOG.md +33 -0
- package/jest-preset-for-typescript.js +0 -15
- package/jest-preset.js +1 -1
- package/package.json +7 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @commercetools-frontend/jest-preset-mc-app
|
|
2
2
|
|
|
3
|
+
## 20.10.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2395](https://github.com/commercetools/merchant-center-application-kit/pull/2395) [`5543128b`](https://github.com/commercetools/merchant-center-application-kit/commit/5543128b8dee4d50a3bf164980e10cb68f0a9f28) Thanks [@emmenko](https://github.com/emmenko)! - Use `babel-jest` also for TypeScript files instead of `ts-jest`.
|
|
8
|
+
|
|
9
|
+
## 20.10.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#2386](https://github.com/commercetools/merchant-center-application-kit/pull/2386) [`d7fcf6fc`](https://github.com/commercetools/merchant-center-application-kit/commit/d7fcf6fc8495d4eae68e0a4f4c1f1b3e0e394454) Thanks [@emmenko](https://github.com/emmenko)! - Upgrade to Yarn v3
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`d7fcf6fc`](https://github.com/commercetools/merchant-center-application-kit/commit/d7fcf6fc8495d4eae68e0a4f4c1f1b3e0e394454)]:
|
|
16
|
+
- @commercetools-frontend/babel-preset-mc-app@20.10.6
|
|
17
|
+
|
|
18
|
+
## 20.10.4
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- [#2380](https://github.com/commercetools/merchant-center-application-kit/pull/2380) [`7fa4d7d0`](https://github.com/commercetools/merchant-center-application-kit/commit/7fa4d7d0c560226eba69ccb73c4014879939e8da) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [[`7fa4d7d0`](https://github.com/commercetools/merchant-center-application-kit/commit/7fa4d7d0c560226eba69ccb73c4014879939e8da)]:
|
|
25
|
+
- @commercetools-frontend/babel-preset-mc-app@20.10.4
|
|
26
|
+
|
|
27
|
+
## 20.10.3
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- [#2362](https://github.com/commercetools/merchant-center-application-kit/pull/2362) [`f6b3ae02`](https://github.com/commercetools/merchant-center-application-kit/commit/f6b3ae02133927642976f976d2d2fd5eb675ce84) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies
|
|
32
|
+
|
|
33
|
+
- Updated dependencies [[`f6b3ae02`](https://github.com/commercetools/merchant-center-application-kit/commit/f6b3ae02133927642976f976d2d2fd5eb675ce84)]:
|
|
34
|
+
- @commercetools-frontend/babel-preset-mc-app@20.10.3
|
|
35
|
+
|
|
3
36
|
## 20.10.1
|
|
4
37
|
|
|
5
38
|
### Patch Changes
|
|
@@ -4,19 +4,4 @@ module.exports = {
|
|
|
4
4
|
...defaultPreset,
|
|
5
5
|
moduleFileExtensions: ['ts', 'tsx', ...defaultPreset.moduleFileExtensions],
|
|
6
6
|
testRegex: '\\.spec\\.[j|t]sx?$',
|
|
7
|
-
transform: {
|
|
8
|
-
...defaultPreset.transform,
|
|
9
|
-
'^.+\\.tsx?$': 'ts-jest',
|
|
10
|
-
},
|
|
11
|
-
// Without this option, somehow CI fails to run the tests with the following error:
|
|
12
|
-
// TypeError: Unable to require `.d.ts` file.
|
|
13
|
-
// This is usually the result of a faulty configuration or import. Make sure there is a `.js`, `.json` or another executable extension available alongside `core.ts`.
|
|
14
|
-
// Fix is based on this comment:
|
|
15
|
-
// - https://github.com/kulshekhar/ts-jest/issues/805#issuecomment-456055213
|
|
16
|
-
// - https://github.com/kulshekhar/ts-jest/blob/master/docs/user/config/isolatedModules.md
|
|
17
|
-
globals: {
|
|
18
|
-
'ts-jest': {
|
|
19
|
-
isolatedModules: true,
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
7
|
};
|
package/jest-preset.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = {
|
|
|
36
36
|
testPathIgnorePatterns: ['node_modules', 'cypress'],
|
|
37
37
|
testRegex: '\\.spec\\.jsx?$',
|
|
38
38
|
transform: {
|
|
39
|
-
'^.+\\.(js|mjs)$': defaultTransformBabelJest,
|
|
39
|
+
'^.+\\.(js|jsx|mjs|ts|tsx)$': defaultTransformBabelJest,
|
|
40
40
|
'^.+\\.graphql$': 'jest-transform-graphql',
|
|
41
41
|
},
|
|
42
42
|
watchPlugins: ['jest-watch-typeahead/filename'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/jest-preset-mc-app",
|
|
3
|
-
"version": "20.10.
|
|
3
|
+
"version": "20.10.7",
|
|
4
4
|
"description": "Jest preset used by a MC application",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -11,18 +11,16 @@
|
|
|
11
11
|
"homepage": "https://docs.commercetools.com/custom-applications",
|
|
12
12
|
"keywords": ["javascript", "frontend", "react", "toolkit"],
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"private": false,
|
|
15
14
|
"publishConfig": {
|
|
16
15
|
"access": "public"
|
|
17
16
|
},
|
|
18
|
-
"scripts": {},
|
|
19
17
|
"main": "./jest-preset.js",
|
|
20
18
|
"module": "./jest-preset.js",
|
|
21
19
|
"dependencies": {
|
|
22
|
-
"@commercetools-frontend/babel-preset-mc-app": "20.10.
|
|
20
|
+
"@commercetools-frontend/babel-preset-mc-app": "20.10.6",
|
|
23
21
|
"@sheerun/mutationobserver-shim": "0.3.3",
|
|
24
22
|
"@testing-library/jest-dom": "5.14.1",
|
|
25
|
-
"babel-jest": "27.
|
|
23
|
+
"babel-jest": "27.3.1",
|
|
26
24
|
"colors": "1.4.0",
|
|
27
25
|
"cosmiconfig": "7.0.1",
|
|
28
26
|
"identity-obj-proxy": "3.0.0",
|
|
@@ -30,15 +28,15 @@
|
|
|
30
28
|
"jest-localstorage-mock": "2.4.18",
|
|
31
29
|
"jest-silent-reporter": "0.5.0",
|
|
32
30
|
"jest-transform-graphql": "2.1.0",
|
|
33
|
-
"jest-watch-typeahead": "0.
|
|
31
|
+
"jest-watch-typeahead": "1.0.0",
|
|
34
32
|
"make-plural": "6.2.2",
|
|
35
33
|
"raf": "3.4.1",
|
|
36
34
|
"setimmediate": "1.0.5",
|
|
37
|
-
"ts-jest": "27.0.
|
|
35
|
+
"ts-jest": "27.0.7",
|
|
38
36
|
"unfetch": "4.2.0"
|
|
39
37
|
},
|
|
40
38
|
"devDependencies": {
|
|
41
|
-
"@testing-library/react": "12.1.
|
|
42
|
-
"jest": "27.
|
|
39
|
+
"@testing-library/react": "12.1.2",
|
|
40
|
+
"jest": "27.3.1"
|
|
43
41
|
}
|
|
44
42
|
}
|