@commercetools-frontend/jest-preset-mc-app 20.10.4 → 20.12.1

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.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2384](https://github.com/commercetools/merchant-center-application-kit/pull/2384) [`cf914004`](https://github.com/commercetools/merchant-center-application-kit/commit/cf9140043ade6edb3ee71a7558b757f5e19bee81) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies
8
+
9
+ - Updated dependencies [[`cf914004`](https://github.com/commercetools/merchant-center-application-kit/commit/cf9140043ade6edb3ee71a7558b757f5e19bee81)]:
10
+ - @commercetools-frontend/babel-preset-mc-app@20.12.1
11
+
12
+ ## 20.11.0
13
+
14
+ ### Patch Changes
15
+
16
+ - [#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
17
+
18
+ ## 20.10.7
19
+
20
+ ### Patch Changes
21
+
22
+ - [#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`.
23
+
24
+ ## 20.10.6
25
+
26
+ ### Patch Changes
27
+
28
+ - [#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
29
+
30
+ - Updated dependencies [[`d7fcf6fc`](https://github.com/commercetools/merchant-center-application-kit/commit/d7fcf6fc8495d4eae68e0a4f4c1f1b3e0e394454)]:
31
+ - @commercetools-frontend/babel-preset-mc-app@20.10.6
32
+
3
33
  ## 20.10.4
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/load-config.js CHANGED
@@ -14,6 +14,7 @@ const defaultConfig = {
14
14
  /.*Warning: componentWillReceiveProps has been renamed.*/,
15
15
  /.*CellMeasurerCache should only measure a cell's width or height.*/,
16
16
  /.*\[React Intl\] "defaultRichTextElements" was specified but "message" was not pre-compiled.*/,
17
+ /.*util function is now deprecated and has been moved to Jest repository.*/,
17
18
  ],
18
19
  notThrowWarnings: [
19
20
  /.*@commercetools-frontend\/permissions.*/,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/jest-preset-mc-app",
3
- "version": "20.10.4",
3
+ "version": "20.12.1",
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.4",
20
+ "@commercetools-frontend/babel-preset-mc-app": "20.12.1",
23
21
  "@sheerun/mutationobserver-shim": "0.3.3",
24
- "@testing-library/jest-dom": "5.14.1",
25
- "babel-jest": "27.3.1",
22
+ "@testing-library/jest-dom": "5.16.1",
23
+ "babel-jest": "27.4.2",
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.7",
35
+ "ts-jest": "27.1.0",
38
36
  "unfetch": "4.2.0"
39
37
  },
40
38
  "devDependencies": {
41
39
  "@testing-library/react": "12.1.2",
42
- "jest": "27.3.1"
40
+ "jest": "27.4.3"
43
41
  }
44
42
  }