@elliemae/pui-cli 8.12.0 → 8.13.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.
|
@@ -21,7 +21,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
22
|
mod
|
|
23
23
|
));
|
|
24
|
-
var import_stable = require("core-js/stable");
|
|
25
24
|
var import_runtime = require("regenerator-runtime/runtime");
|
|
26
25
|
var import_extend_expect = require("@testing-library/jest-dom/extend-expect");
|
|
27
26
|
var import_jest_axe = __toESM(require("jest-axe"), 1);
|
|
@@ -72,3 +71,25 @@ window.emui = {
|
|
|
72
71
|
logger: (0, import_pui_diagnostics.logger)(),
|
|
73
72
|
_BASE_PATH: new URL(document.baseURI).pathname
|
|
74
73
|
};
|
|
74
|
+
let showCorejsWarn = false;
|
|
75
|
+
afterAll(() => {
|
|
76
|
+
if (showCorejsWarn) {
|
|
77
|
+
console.warn(
|
|
78
|
+
`IMPORTANT: Try importing core-js/stable in your failed test files and retrying.
|
|
79
|
+
Some tests might have failed because of it`
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
const originalTest = global.test;
|
|
84
|
+
global.it = (name, fn, timeout = void 0) => {
|
|
85
|
+
const fnWrapper = async () => {
|
|
86
|
+
try {
|
|
87
|
+
await fn();
|
|
88
|
+
} catch (error) {
|
|
89
|
+
showCorejsWarn = true;
|
|
90
|
+
throw error;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
originalTest(name, fnWrapper, timeout);
|
|
94
|
+
};
|
|
95
|
+
global.it.skip = originalTest.skip;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "core-js/stable";
|
|
2
1
|
import "regenerator-runtime/runtime";
|
|
3
2
|
import "@testing-library/jest-dom/extend-expect";
|
|
4
3
|
import jestAxe from "jest-axe";
|
|
@@ -49,3 +48,25 @@ window.emui = {
|
|
|
49
48
|
logger: logger(),
|
|
50
49
|
_BASE_PATH: new URL(document.baseURI).pathname
|
|
51
50
|
};
|
|
51
|
+
let showCorejsWarn = false;
|
|
52
|
+
afterAll(() => {
|
|
53
|
+
if (showCorejsWarn) {
|
|
54
|
+
console.warn(
|
|
55
|
+
`IMPORTANT: Try importing core-js/stable in your failed test files and retrying.
|
|
56
|
+
Some tests might have failed because of it`
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
const originalTest = global.test;
|
|
61
|
+
global.it = (name, fn, timeout = void 0) => {
|
|
62
|
+
const fnWrapper = async () => {
|
|
63
|
+
try {
|
|
64
|
+
await fn();
|
|
65
|
+
} catch (error) {
|
|
66
|
+
showCorejsWarn = true;
|
|
67
|
+
throw error;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
originalTest(name, fnWrapper, timeout);
|
|
71
|
+
};
|
|
72
|
+
global.it.skip = originalTest.skip;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.13.1",
|
|
4
4
|
"description": "ICE MT UI Platform CLI",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
"node-plop": "~0.31.1",
|
|
238
238
|
"nodemon": "~2.0.22",
|
|
239
239
|
"normalize-path": "~3.0.0",
|
|
240
|
-
"npm-check-updates": "16.10.
|
|
240
|
+
"npm-check-updates": "16.10.15",
|
|
241
241
|
"npm-run-all": "~4.1.5",
|
|
242
242
|
"pino": "~8.14.1",
|
|
243
243
|
"pino-http": "~8.3.3",
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
"update-notifier": "~6.0.2",
|
|
280
280
|
"url-loader": "~4.1.1",
|
|
281
281
|
"uuid": "~9.0.0",
|
|
282
|
-
"vite": "~4.4.
|
|
282
|
+
"vite": "~4.4.2",
|
|
283
283
|
"vite-tsconfig-paths": "~4.2.0",
|
|
284
284
|
"vitest": "~0.33.0",
|
|
285
285
|
"webpack": "~5.88.1",
|