@commercetools-frontend/jest-preset-mc-app 20.10.6 → 20.12.3

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,37 @@
1
1
  # @commercetools-frontend/jest-preset-mc-app
2
2
 
3
+ ## 20.12.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2433](https://github.com/commercetools/merchant-center-application-kit/pull/2433) [`d65e29e4`](https://github.com/commercetools/merchant-center-application-kit/commit/d65e29e4eea4d1809abaa8cc82cc246c681dfa27) Thanks [@emmenko](https://github.com/emmenko)! - Replace `ts-jest/utils` with `jest-mock`, for using the `mocked` function.
8
+
9
+ * [#2433](https://github.com/commercetools/merchant-center-application-kit/pull/2433) [`d65e29e4`](https://github.com/commercetools/merchant-center-application-kit/commit/d65e29e4eea4d1809abaa8cc82cc246c681dfa27) Thanks [@emmenko](https://github.com/emmenko)! - Update dependencies
10
+
11
+ * Updated dependencies [[`d65e29e4`](https://github.com/commercetools/merchant-center-application-kit/commit/d65e29e4eea4d1809abaa8cc82cc246c681dfa27), [`d65e29e4`](https://github.com/commercetools/merchant-center-application-kit/commit/d65e29e4eea4d1809abaa8cc82cc246c681dfa27)]:
12
+ - @commercetools-frontend/babel-preset-mc-app@20.12.3
13
+
14
+ ## 20.12.1
15
+
16
+ ### Patch Changes
17
+
18
+ - [#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
19
+
20
+ - Updated dependencies [[`cf914004`](https://github.com/commercetools/merchant-center-application-kit/commit/cf9140043ade6edb3ee71a7558b757f5e19bee81)]:
21
+ - @commercetools-frontend/babel-preset-mc-app@20.12.1
22
+
23
+ ## 20.11.0
24
+
25
+ ### Patch Changes
26
+
27
+ - [#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
28
+
29
+ ## 20.10.7
30
+
31
+ ### Patch Changes
32
+
33
+ - [#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`.
34
+
3
35
  ## 20.10.6
4
36
 
5
37
  ### 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.6",
3
+ "version": "20.12.3",
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": {
@@ -17,26 +17,26 @@
17
17
  "main": "./jest-preset.js",
18
18
  "module": "./jest-preset.js",
19
19
  "dependencies": {
20
- "@commercetools-frontend/babel-preset-mc-app": "20.10.6",
20
+ "@commercetools-frontend/babel-preset-mc-app": "20.12.3",
21
21
  "@sheerun/mutationobserver-shim": "0.3.3",
22
- "@testing-library/jest-dom": "5.14.1",
23
- "babel-jest": "27.3.1",
22
+ "@testing-library/jest-dom": "5.16.1",
23
+ "babel-jest": "27.4.5",
24
24
  "colors": "1.4.0",
25
25
  "cosmiconfig": "7.0.1",
26
26
  "identity-obj-proxy": "3.0.0",
27
27
  "intl": "1.2.5",
28
28
  "jest-localstorage-mock": "2.4.18",
29
+ "jest-mock": "^27.4.2",
29
30
  "jest-silent-reporter": "0.5.0",
30
31
  "jest-transform-graphql": "2.1.0",
31
32
  "jest-watch-typeahead": "1.0.0",
32
- "make-plural": "6.2.2",
33
+ "make-plural": "7.0.0",
33
34
  "raf": "3.4.1",
34
35
  "setimmediate": "1.0.5",
35
- "ts-jest": "27.0.7",
36
36
  "unfetch": "4.2.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@testing-library/react": "12.1.2",
40
- "jest": "27.3.1"
40
+ "jest": "27.4.5"
41
41
  }
42
42
  }