@commercetools-frontend/jest-preset-mc-app 20.10.3 → 20.11.0

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 CHANGED
@@ -1,5 +1,35 @@
1
1
  # @commercetools-frontend/jest-preset-mc-app
2
2
 
3
+ ## 20.11.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2349](https://github.com/commercetools/merchant-center-application-kit/pull/2349) [`96eae0b7`](https://github.com/commercetools/merchant-center-application-kit/commit/96eae0b760efabb97a491238f77a92e34cc12bdf) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency make-plural to v7
8
+
9
+ ## 20.10.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [#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`.
14
+
15
+ ## 20.10.6
16
+
17
+ ### Patch Changes
18
+
19
+ - [#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
20
+
21
+ - Updated dependencies [[`d7fcf6fc`](https://github.com/commercetools/merchant-center-application-kit/commit/d7fcf6fc8495d4eae68e0a4f4c1f1b3e0e394454)]:
22
+ - @commercetools-frontend/babel-preset-mc-app@20.10.6
23
+
24
+ ## 20.10.4
25
+
26
+ ### Patch Changes
27
+
28
+ - [#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
29
+
30
+ - Updated dependencies [[`7fa4d7d0`](https://github.com/commercetools/merchant-center-application-kit/commit/7fa4d7d0c560226eba69ccb73c4014879939e8da)]:
31
+ - @commercetools-frontend/babel-preset-mc-app@20.10.4
32
+
3
33
  ## 20.10.3
4
34
 
5
35
  ### 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",
3
+ "version": "20.11.0",
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.3",
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.2.5",
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",
@@ -31,14 +29,14 @@
31
29
  "jest-silent-reporter": "0.5.0",
32
30
  "jest-transform-graphql": "2.1.0",
33
31
  "jest-watch-typeahead": "1.0.0",
34
- "make-plural": "6.2.2",
32
+ "make-plural": "7.0.0",
35
33
  "raf": "3.4.1",
36
34
  "setimmediate": "1.0.5",
37
- "ts-jest": "27.0.5",
35
+ "ts-jest": "27.0.7",
38
36
  "unfetch": "4.2.0"
39
37
  },
40
38
  "devDependencies": {
41
39
  "@testing-library/react": "12.1.2",
42
- "jest": "27.2.5"
40
+ "jest": "27.3.1"
43
41
  }
44
42
  }