@commercetools-frontend/jest-preset-mc-app 23.1.0 → 23.2.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 +13 -0
- package/package.json +2 -2
- package/setup-test-framework.js +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @commercetools-frontend/jest-preset-mc-app
|
|
2
2
|
|
|
3
|
+
## 23.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#3738](https://github.com/commercetools/merchant-center-application-kit/pull/3738) [`53d1e33`](https://github.com/commercetools/merchant-center-application-kit/commit/53d1e3305a0c53f672b8d6666abb7f7a175719d6) Thanks [@CarlosCortizasCT](https://github.com/CarlosCortizasCT)! - We've updated how `console` messages are handled in local environments: previously, `console.warn` and `console.error` messages did not make tests to fail locally but they did in CI; this behaviour led to several cases where we did not realize about an issue until some code reached CI whereas it could be detected locally.
|
|
8
|
+
|
|
9
|
+
With this change we expect some errors to be caught earlier in the development lifecycle and thus shorten the time to fix them.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies []:
|
|
14
|
+
- @commercetools-frontend/babel-preset-mc-app@23.2.0
|
|
15
|
+
|
|
3
16
|
## 23.1.0
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/jest-preset-mc-app",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.2.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": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"module": "./jest-preset.js",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@babel/core": "^7.22.17",
|
|
26
|
-
"@commercetools-frontend/babel-preset-mc-app": "23.
|
|
26
|
+
"@commercetools-frontend/babel-preset-mc-app": "23.2.0",
|
|
27
27
|
"@formatjs/intl-getcanonicallocales": "^2.2.1",
|
|
28
28
|
"@formatjs/intl-listformat": "^7.4.1",
|
|
29
29
|
"@formatjs/intl-locale": "^3.3.3",
|
package/setup-test-framework.js
CHANGED
|
@@ -66,13 +66,10 @@ function shouldNotThrowWarnings(...messages) {
|
|
|
66
66
|
|
|
67
67
|
failOnConsole({
|
|
68
68
|
shouldFailOnLog: Boolean(process.env.CI),
|
|
69
|
-
shouldFailOnInfo:
|
|
70
|
-
shouldFailOnWarn:
|
|
71
|
-
shouldFailOnError:
|
|
69
|
+
shouldFailOnInfo: true,
|
|
70
|
+
shouldFailOnWarn: true,
|
|
71
|
+
shouldFailOnError: true,
|
|
72
72
|
silenceMessage: (message) => {
|
|
73
|
-
if (!process.env.CI) {
|
|
74
|
-
return false;
|
|
75
|
-
}
|
|
76
73
|
return shouldSilenceWarnings(message);
|
|
77
74
|
},
|
|
78
75
|
logButNotThrowMessage: (message) => {
|