@commercetools-frontend/jest-preset-mc-app 22.2.1 → 22.3.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,31 @@
1
1
  # @commercetools-frontend/jest-preset-mc-app
2
2
 
3
+ ## 22.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3112](https://github.com/commercetools/merchant-center-application-kit/pull/3112) [`9eb27a31e`](https://github.com/commercetools/merchant-center-application-kit/commit/9eb27a31e96c6648fb8f5c4127493b3098b63342) Thanks [@ahmehri](https://github.com/ahmehri)! - Adds support for `process.env.CI` being `undefined`
8
+
9
+ This fixes an issue introduced in #3086 when `process.env.CI` is evaluated to `undefined`.
10
+
11
+ - Updated dependencies []:
12
+ - @commercetools-frontend/babel-preset-mc-app@22.3.1
13
+
14
+ ## 22.3.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [#2976](https://github.com/commercetools/merchant-center-application-kit/pull/2976) [`9add8f46b`](https://github.com/commercetools/merchant-center-application-kit/commit/9add8f46b668fb95b2c966a087bfb00c807ab55e) Thanks [@emmenko](https://github.com/emmenko)! - We migrate from Yarn to Pnpm as the package manager for the App Kit repository. As a result of it there were several packages that didn't specify all the needed dependencies. This is fixed now.
19
+
20
+ ### Patch Changes
21
+
22
+ - [#3086](https://github.com/commercetools/merchant-center-application-kit/pull/3086) [`646b8bf56`](https://github.com/commercetools/merchant-center-application-kit/commit/646b8bf56c01766a924f329c27f63ce0796724ad) Thanks [@ahmehri](https://github.com/ahmehri)! - Do not fail on console when not on CI.
23
+
24
+ This is in order to restore the old behavior when running tests locally. Adding debug `console.log` statements should not fail the tests and clutter the output with false-positive "Expected test not to call console.log()" errors.
25
+
26
+ - Updated dependencies []:
27
+ - @commercetools-frontend/babel-preset-mc-app@22.3.0
28
+
3
29
  ## 22.2.1
4
30
 
5
31
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/jest-preset-mc-app",
3
- "version": "22.2.1",
3
+ "version": "22.3.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": {
@@ -9,7 +9,12 @@
9
9
  "directory": "packages/jest-preset-mc-app"
10
10
  },
11
11
  "homepage": "https://docs.commercetools.com/custom-applications",
12
- "keywords": ["javascript", "frontend", "react", "toolkit"],
12
+ "keywords": [
13
+ "javascript",
14
+ "frontend",
15
+ "react",
16
+ "toolkit"
17
+ ],
13
18
  "license": "MIT",
14
19
  "publishConfig": {
15
20
  "access": "public"
@@ -17,7 +22,8 @@
17
22
  "main": "./jest-preset.js",
18
23
  "module": "./jest-preset.js",
19
24
  "dependencies": {
20
- "@commercetools-frontend/babel-preset-mc-app": "22.2.1",
25
+ "@babel/core": "^7.20.12",
26
+ "@commercetools-frontend/babel-preset-mc-app": "22.3.1",
21
27
  "@formatjs/intl-getcanonicallocales": "^2.1.0",
22
28
  "@formatjs/intl-listformat": "^7.1.9",
23
29
  "@formatjs/intl-locale": "^3.1.1",
@@ -29,12 +35,13 @@
29
35
  "babel-preset-jest": "29.5.0",
30
36
  "colors": "1.4.0",
31
37
  "cosmiconfig": "7.1.0",
38
+ "graphql": "16.6.0",
32
39
  "graphql-tag": "^2.12.6",
33
40
  "identity-obj-proxy": "3.0.0",
34
41
  "intl": "1.2.5",
35
42
  "jest-environment-jsdom": "^29.5.0",
36
43
  "jest-localstorage-mock": "2.4.26",
37
- "jest-mock": "^29.5.0",
44
+ "jest-mock": "29.5.0",
38
45
  "jest-silent-reporter": "0.5.0",
39
46
  "jest-watch-typeahead": "2.2.2",
40
47
  "raf": "3.4.1",
@@ -48,4 +55,4 @@
48
55
  "peerDependencies": {
49
56
  "jest": "29.x"
50
57
  }
51
- }
58
+ }
@@ -65,10 +65,10 @@ function shouldNotThrowWarnings(...messages) {
65
65
  }
66
66
 
67
67
  failOnConsole({
68
- shouldFailOnLog: true,
69
- shouldFailOnInfo: true,
70
- shouldFailOnWarn: true,
71
- shouldFailOnError: true,
68
+ shouldFailOnLog: Boolean(process.env.CI),
69
+ shouldFailOnInfo: Boolean(process.env.CI),
70
+ shouldFailOnWarn: Boolean(process.env.CI),
71
+ shouldFailOnError: Boolean(process.env.CI),
72
72
  silenceMessage: (message) => {
73
73
  if (!process.env.CI) {
74
74
  return false;