@elliemae/pui-cli 9.0.0-next.16 → 9.0.0-next.18
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/dist/cjs/testing/ExtendedJSDomEnv.cjs +37 -0
- package/dist/cjs/testing/extended/axe-core/getMessageAndPass.js +37 -0
- package/dist/cjs/testing/extended/axe-core/index.js +24 -0
- package/dist/cjs/testing/extended/axe-core/reporter.js +51 -0
- package/dist/cjs/testing/extended/axe-core/shouldIgnoreNodeViolation.js +31 -0
- package/dist/cjs/testing/extended/axe-core/toHaveNoViolations.js +43 -0
- package/dist/cjs/testing/jest.config.cjs +1 -1
- package/dist/cjs/testing/setup-tests.js +2 -2
- package/dist/cjs/webpack/helpers.js +10 -0
- package/dist/cjs/webpack/webpack.storybook.js +8 -1
- package/dist/esm/testing/ExtendedJSDomEnv.cjs +37 -0
- package/dist/esm/testing/extended/axe-core/getMessageAndPass.js +17 -0
- package/dist/esm/testing/extended/axe-core/index.js +4 -0
- package/dist/esm/testing/extended/axe-core/reporter.js +31 -0
- package/dist/esm/testing/extended/axe-core/shouldIgnoreNodeViolation.js +11 -0
- package/dist/esm/testing/extended/axe-core/toHaveNoViolations.js +23 -0
- package/dist/esm/testing/jest.config.cjs +1 -1
- package/dist/esm/testing/setup-tests.js +2 -2
- package/dist/esm/webpack/helpers.js +10 -0
- package/dist/esm/webpack/webpack.storybook.js +9 -2
- package/dist/types/testing/ExtendedJSDomEnv.d.cts +5 -0
- package/dist/types/testing/extended/axe-core/getMessageAndPass.d.ts +8 -0
- package/dist/types/testing/extended/axe-core/index.d.ts +1 -0
- package/dist/types/testing/extended/axe-core/reporter.d.ts +2 -0
- package/dist/types/testing/extended/axe-core/shouldIgnoreNodeViolation.d.ts +2 -0
- package/dist/types/testing/extended/axe-core/toHaveNoViolations.d.ts +12 -0
- package/dist/types/tests/basic.test.d.ts +0 -0
- package/dist/types/webpack/helpers.d.ts +3 -0
- package/package.json +56 -55
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const { TestEnvironment } = require('jest-environment-jsdom');
|
|
2
|
+
|
|
3
|
+
// ICE platform is meant to be run on node > 18
|
|
4
|
+
// "jest-environment-jsdom": "~29.6.3" is instead meant to support node >16
|
|
5
|
+
// features that are supported since node 17 & 18 are not supported in jsdom env
|
|
6
|
+
// the limitation is not relevant for us since we are already running on node 18 anyway,
|
|
7
|
+
// this "ExtendedJSDomEnv" is an extension of the
|
|
8
|
+
// jest.config.cjs
|
|
9
|
+
// {
|
|
10
|
+
// ...
|
|
11
|
+
// testEnvironment: 'jsdom'
|
|
12
|
+
// ...
|
|
13
|
+
// }
|
|
14
|
+
// that actually uses node 18 features that are not supported in "jest-environment-jsdom": "~29.6.3"
|
|
15
|
+
|
|
16
|
+
// https://github.com/facebook/jest/blob/v29.4.3/website/versioned_docs/version-29.4/Configuration.md#testenvironment-string
|
|
17
|
+
class FixJSDOMEnvironment extends TestEnvironment {
|
|
18
|
+
constructor(...args) {
|
|
19
|
+
super(...args);
|
|
20
|
+
|
|
21
|
+
// From here on we are using "node" (currently running version of it) to polyfill jsdom this.global
|
|
22
|
+
|
|
23
|
+
// FIXME https://github.com/jsdom/jsdom/issues/3363
|
|
24
|
+
if (structuredClone) this.global.structuredClone = structuredClone;
|
|
25
|
+
|
|
26
|
+
// FIXME https://github.com/jsdom/jsdom/issues/1724
|
|
27
|
+
if (fetch) this.global.fetch = fetch;
|
|
28
|
+
if (Headers) this.global.Headers = Headers;
|
|
29
|
+
if (Request) this.global.Request = Request;
|
|
30
|
+
if (Response) this.global.Response = Response;
|
|
31
|
+
|
|
32
|
+
// FIXME https://github.com/jsdom/jsdom/issues/1721
|
|
33
|
+
if (URL) this.global.URL = URL;
|
|
34
|
+
if (Blob) this.global.Blob = Blob;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
module.exports = FixJSDOMEnvironment;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var getMessageAndPass_exports = {};
|
|
20
|
+
__export(getMessageAndPass_exports, {
|
|
21
|
+
getMessageAndPass: () => getMessageAndPass
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(getMessageAndPass_exports);
|
|
24
|
+
var import_jest_matcher_utils = require("jest-matcher-utils");
|
|
25
|
+
var import_reporter = require("./reporter.js");
|
|
26
|
+
const getMessageAndPass = (violations) => {
|
|
27
|
+
const formatedViolations = (0, import_reporter.reporter)(violations);
|
|
28
|
+
const pass = formatedViolations.length === 0;
|
|
29
|
+
if (pass)
|
|
30
|
+
return { message: () => "", pass };
|
|
31
|
+
return {
|
|
32
|
+
message: () => `${(0, import_jest_matcher_utils.matcherHint)(".toHaveNoViolations")}
|
|
33
|
+
|
|
34
|
+
${formatedViolations}`,
|
|
35
|
+
pass
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var axe_core_exports = {};
|
|
20
|
+
__export(axe_core_exports, {
|
|
21
|
+
toHaveNoViolations: () => import_toHaveNoViolations.toHaveNoViolations
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(axe_core_exports);
|
|
24
|
+
var import_toHaveNoViolations = require("./toHaveNoViolations.js");
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var reporter_exports = {};
|
|
20
|
+
__export(reporter_exports, {
|
|
21
|
+
reporter: () => reporter
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(reporter_exports);
|
|
24
|
+
var import_jest_matcher_utils = require("jest-matcher-utils");
|
|
25
|
+
const colorYellow = (arg) => `\x1B[93m ${arg ?? ""} \x1B[0m`;
|
|
26
|
+
const colorGrey = (arg) => `\x1B[90m ${arg ?? ""} \x1B[0m`;
|
|
27
|
+
const colorBlue = (arg) => `\x1B[34m ${arg ?? ""} \x1B[0m`;
|
|
28
|
+
const reporter = (violToFormat) => {
|
|
29
|
+
if (violToFormat.length === 0)
|
|
30
|
+
return "";
|
|
31
|
+
const lineBreak = "\n\n";
|
|
32
|
+
const horizontalLine = "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500";
|
|
33
|
+
return violToFormat.map((violation) => {
|
|
34
|
+
const errorBody = violation.nodes.map((node) => {
|
|
35
|
+
const selector = node.target.join(", ");
|
|
36
|
+
const expectedText = `Expected the HTML found at $('${selector}') to have no violations:${lineBreak}`;
|
|
37
|
+
let violationHelpUrl = "";
|
|
38
|
+
if (violation.helpUrl)
|
|
39
|
+
violationHelpUrl = `You can find more information on this issue here:
|
|
40
|
+
${colorBlue(
|
|
41
|
+
violation.helpUrl
|
|
42
|
+
)}`;
|
|
43
|
+
return `${expectedText + colorGrey(node.html) + lineBreak}Received:${lineBreak}${(0, import_jest_matcher_utils.printReceived)(
|
|
44
|
+
`${violation.help} (${violation.id})`
|
|
45
|
+
)}${lineBreak}${colorYellow(
|
|
46
|
+
node.failureSummary
|
|
47
|
+
)}${lineBreak}${violationHelpUrl}`;
|
|
48
|
+
}).join(lineBreak);
|
|
49
|
+
return errorBody;
|
|
50
|
+
}).join(lineBreak + horizontalLine + lineBreak);
|
|
51
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var shouldIgnoreNodeViolation_exports = {};
|
|
20
|
+
__export(shouldIgnoreNodeViolation_exports, {
|
|
21
|
+
shouldIgnoreNodeViolation: () => shouldIgnoreNodeViolation
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(shouldIgnoreNodeViolation_exports);
|
|
24
|
+
const dataAttributeRegexp = /(data-[\S]*)=["']([\S]*)["']/gm;
|
|
25
|
+
const shouldIgnoreNodeViolation = (node, violation) => [...node.html.matchAll(dataAttributeRegexp)].map(([fullMatch, dataKey, dataValue]) => ({
|
|
26
|
+
fullMatch,
|
|
27
|
+
dataKey,
|
|
28
|
+
dataValue
|
|
29
|
+
})).some(
|
|
30
|
+
({ dataKey, dataValue }) => dataKey === `data-axe-ignore-${violation.id}` && dataValue === "true"
|
|
31
|
+
);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var toHaveNoViolations_exports = {};
|
|
20
|
+
__export(toHaveNoViolations_exports, {
|
|
21
|
+
toHaveNoViolations: () => toHaveNoViolations
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(toHaveNoViolations_exports);
|
|
24
|
+
var import_getMessageAndPass = require("./getMessageAndPass.js");
|
|
25
|
+
var import_shouldIgnoreNodeViolation = require("./shouldIgnoreNodeViolation.js");
|
|
26
|
+
const toHaveNoViolations = {
|
|
27
|
+
toHaveNoViolations(results) {
|
|
28
|
+
const { violations } = results;
|
|
29
|
+
const finalViolations = [];
|
|
30
|
+
violations.forEach((violation) => {
|
|
31
|
+
const { nodes } = violation;
|
|
32
|
+
const newNodes = [];
|
|
33
|
+
nodes.forEach((node) => {
|
|
34
|
+
if (!(0, import_shouldIgnoreNodeViolation.shouldIgnoreNodeViolation)(node, violation))
|
|
35
|
+
newNodes.push(node);
|
|
36
|
+
});
|
|
37
|
+
if (newNodes.length > 0) {
|
|
38
|
+
finalViolations.push({ ...violation, nodes: newNodes });
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
return { actual: violations, ...(0, import_getMessageAndPass.getMessageAndPass)(finalViolations) };
|
|
42
|
+
}
|
|
43
|
+
};
|
|
@@ -94,7 +94,7 @@ const jestConfig = {
|
|
|
94
94
|
url: `http://localhost:3111${basePath}`,
|
|
95
95
|
resources: 'usable',
|
|
96
96
|
},
|
|
97
|
-
testEnvironment: '
|
|
97
|
+
testEnvironment: path.resolve(__dirname, './ExtendedJSDomEnv.cjs'),
|
|
98
98
|
watchPlugins: [
|
|
99
99
|
'jest-watch-typeahead/filename',
|
|
100
100
|
'jest-watch-typeahead/testname',
|
|
@@ -23,8 +23,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
));
|
|
24
24
|
var import_runtime = require("regenerator-runtime/runtime");
|
|
25
25
|
var import_jest_globals = require("@testing-library/jest-dom/jest-globals");
|
|
26
|
-
var import_jest_axe = __toESM(require("jest-axe"), 1);
|
|
27
26
|
var import_resize_observer_polyfill = __toESM(require("resize-observer-polyfill"), 1);
|
|
27
|
+
var import_axe_core = require("./extended/axe-core");
|
|
28
28
|
var import_matchMedia = require("./mocks/matchMedia.js");
|
|
29
29
|
var import_pui_diagnostics = require("./mocks/pui-diagnostics.js");
|
|
30
30
|
const originalError = console.error;
|
|
@@ -47,7 +47,7 @@ console.error = (...args) => {
|
|
|
47
47
|
return originalError(...args);
|
|
48
48
|
};
|
|
49
49
|
if (expect)
|
|
50
|
-
expect.extend(
|
|
50
|
+
expect.extend(import_axe_core.toHaveNoViolations);
|
|
51
51
|
const addElementToBody = (element) => {
|
|
52
52
|
const documentEle = (window || {}).document;
|
|
53
53
|
if (!documentEle)
|
|
@@ -34,6 +34,7 @@ __export(helpers_exports, {
|
|
|
34
34
|
getAlias: () => getAlias,
|
|
35
35
|
getAppVersion: () => getAppVersion,
|
|
36
36
|
getCompressionPlugins: () => getCompressionPlugins,
|
|
37
|
+
getLibraryAlias: () => getLibraryAlias,
|
|
37
38
|
getLibraryName: () => getLibraryName,
|
|
38
39
|
getLibraryVariableName: () => getLibraryVariableName,
|
|
39
40
|
getMediaPath: () => getMediaPath,
|
|
@@ -113,6 +114,15 @@ const getAlias = () => {
|
|
|
113
114
|
import_node_path.default.join(monorepoRoot, "./node_modules")
|
|
114
115
|
);
|
|
115
116
|
};
|
|
117
|
+
const getLibraryAlias = (name, alias) => {
|
|
118
|
+
const monorepoRoot = (0, import_utils.findMonoRepoRoot)(process.cwd()) ?? "";
|
|
119
|
+
const aliasPath = import_node_path.default.resolve(
|
|
120
|
+
`${import_node_path.default.join(monorepoRoot, "./node_modules")}/${alias}`
|
|
121
|
+
);
|
|
122
|
+
return {
|
|
123
|
+
[name]: aliasPath
|
|
124
|
+
};
|
|
125
|
+
};
|
|
116
126
|
const modulesToTranspile = [
|
|
117
127
|
"@elliemae/pui-*",
|
|
118
128
|
"@elliemae/ds-*",
|
|
@@ -96,7 +96,14 @@ const webpackFinal = (config, { configType }) => {
|
|
|
96
96
|
config.plugins = config?.plugins?.concat((0, import_helpers.getCompressionPlugins)());
|
|
97
97
|
}
|
|
98
98
|
if (config.resolve) {
|
|
99
|
-
config.resolve.alias = {
|
|
99
|
+
config.resolve.alias = {
|
|
100
|
+
...config?.resolve?.alias,
|
|
101
|
+
...(0, import_helpers.getAlias)(),
|
|
102
|
+
...(0, import_helpers.getLibraryAlias)(
|
|
103
|
+
"@reduxjs/toolkit/query/react",
|
|
104
|
+
"@reduxjs/toolkit/dist/query/react/rtk-query-react.esm.js"
|
|
105
|
+
)
|
|
106
|
+
};
|
|
100
107
|
config.resolve.fallback = { ...config.resolve.fallback, crypto: false };
|
|
101
108
|
config.resolve.extensions?.push(".svg");
|
|
102
109
|
config.resolve.plugins = [
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const { TestEnvironment } = require('jest-environment-jsdom');
|
|
2
|
+
|
|
3
|
+
// ICE platform is meant to be run on node > 18
|
|
4
|
+
// "jest-environment-jsdom": "~29.6.3" is instead meant to support node >16
|
|
5
|
+
// features that are supported since node 17 & 18 are not supported in jsdom env
|
|
6
|
+
// the limitation is not relevant for us since we are already running on node 18 anyway,
|
|
7
|
+
// this "ExtendedJSDomEnv" is an extension of the
|
|
8
|
+
// jest.config.cjs
|
|
9
|
+
// {
|
|
10
|
+
// ...
|
|
11
|
+
// testEnvironment: 'jsdom'
|
|
12
|
+
// ...
|
|
13
|
+
// }
|
|
14
|
+
// that actually uses node 18 features that are not supported in "jest-environment-jsdom": "~29.6.3"
|
|
15
|
+
|
|
16
|
+
// https://github.com/facebook/jest/blob/v29.4.3/website/versioned_docs/version-29.4/Configuration.md#testenvironment-string
|
|
17
|
+
class FixJSDOMEnvironment extends TestEnvironment {
|
|
18
|
+
constructor(...args) {
|
|
19
|
+
super(...args);
|
|
20
|
+
|
|
21
|
+
// From here on we are using "node" (currently running version of it) to polyfill jsdom this.global
|
|
22
|
+
|
|
23
|
+
// FIXME https://github.com/jsdom/jsdom/issues/3363
|
|
24
|
+
if (structuredClone) this.global.structuredClone = structuredClone;
|
|
25
|
+
|
|
26
|
+
// FIXME https://github.com/jsdom/jsdom/issues/1724
|
|
27
|
+
if (fetch) this.global.fetch = fetch;
|
|
28
|
+
if (Headers) this.global.Headers = Headers;
|
|
29
|
+
if (Request) this.global.Request = Request;
|
|
30
|
+
if (Response) this.global.Response = Response;
|
|
31
|
+
|
|
32
|
+
// FIXME https://github.com/jsdom/jsdom/issues/1721
|
|
33
|
+
if (URL) this.global.URL = URL;
|
|
34
|
+
if (Blob) this.global.Blob = Blob;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
module.exports = FixJSDOMEnvironment;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { matcherHint } from "jest-matcher-utils";
|
|
2
|
+
import { reporter } from "./reporter.js";
|
|
3
|
+
const getMessageAndPass = (violations) => {
|
|
4
|
+
const formatedViolations = reporter(violations);
|
|
5
|
+
const pass = formatedViolations.length === 0;
|
|
6
|
+
if (pass)
|
|
7
|
+
return { message: () => "", pass };
|
|
8
|
+
return {
|
|
9
|
+
message: () => `${matcherHint(".toHaveNoViolations")}
|
|
10
|
+
|
|
11
|
+
${formatedViolations}`,
|
|
12
|
+
pass
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
getMessageAndPass
|
|
17
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { printReceived } from "jest-matcher-utils";
|
|
2
|
+
const colorYellow = (arg) => `\x1B[93m ${arg ?? ""} \x1B[0m`;
|
|
3
|
+
const colorGrey = (arg) => `\x1B[90m ${arg ?? ""} \x1B[0m`;
|
|
4
|
+
const colorBlue = (arg) => `\x1B[34m ${arg ?? ""} \x1B[0m`;
|
|
5
|
+
const reporter = (violToFormat) => {
|
|
6
|
+
if (violToFormat.length === 0)
|
|
7
|
+
return "";
|
|
8
|
+
const lineBreak = "\n\n";
|
|
9
|
+
const horizontalLine = "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500";
|
|
10
|
+
return violToFormat.map((violation) => {
|
|
11
|
+
const errorBody = violation.nodes.map((node) => {
|
|
12
|
+
const selector = node.target.join(", ");
|
|
13
|
+
const expectedText = `Expected the HTML found at $('${selector}') to have no violations:${lineBreak}`;
|
|
14
|
+
let violationHelpUrl = "";
|
|
15
|
+
if (violation.helpUrl)
|
|
16
|
+
violationHelpUrl = `You can find more information on this issue here:
|
|
17
|
+
${colorBlue(
|
|
18
|
+
violation.helpUrl
|
|
19
|
+
)}`;
|
|
20
|
+
return `${expectedText + colorGrey(node.html) + lineBreak}Received:${lineBreak}${printReceived(
|
|
21
|
+
`${violation.help} (${violation.id})`
|
|
22
|
+
)}${lineBreak}${colorYellow(
|
|
23
|
+
node.failureSummary
|
|
24
|
+
)}${lineBreak}${violationHelpUrl}`;
|
|
25
|
+
}).join(lineBreak);
|
|
26
|
+
return errorBody;
|
|
27
|
+
}).join(lineBreak + horizontalLine + lineBreak);
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
reporter
|
|
31
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const dataAttributeRegexp = /(data-[\S]*)=["']([\S]*)["']/gm;
|
|
2
|
+
const shouldIgnoreNodeViolation = (node, violation) => [...node.html.matchAll(dataAttributeRegexp)].map(([fullMatch, dataKey, dataValue]) => ({
|
|
3
|
+
fullMatch,
|
|
4
|
+
dataKey,
|
|
5
|
+
dataValue
|
|
6
|
+
})).some(
|
|
7
|
+
({ dataKey, dataValue }) => dataKey === `data-axe-ignore-${violation.id}` && dataValue === "true"
|
|
8
|
+
);
|
|
9
|
+
export {
|
|
10
|
+
shouldIgnoreNodeViolation
|
|
11
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getMessageAndPass } from "./getMessageAndPass.js";
|
|
2
|
+
import { shouldIgnoreNodeViolation } from "./shouldIgnoreNodeViolation.js";
|
|
3
|
+
const toHaveNoViolations = {
|
|
4
|
+
toHaveNoViolations(results) {
|
|
5
|
+
const { violations } = results;
|
|
6
|
+
const finalViolations = [];
|
|
7
|
+
violations.forEach((violation) => {
|
|
8
|
+
const { nodes } = violation;
|
|
9
|
+
const newNodes = [];
|
|
10
|
+
nodes.forEach((node) => {
|
|
11
|
+
if (!shouldIgnoreNodeViolation(node, violation))
|
|
12
|
+
newNodes.push(node);
|
|
13
|
+
});
|
|
14
|
+
if (newNodes.length > 0) {
|
|
15
|
+
finalViolations.push({ ...violation, nodes: newNodes });
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
return { actual: violations, ...getMessageAndPass(finalViolations) };
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
toHaveNoViolations
|
|
23
|
+
};
|
|
@@ -94,7 +94,7 @@ const jestConfig = {
|
|
|
94
94
|
url: `http://localhost:3111${basePath}`,
|
|
95
95
|
resources: 'usable',
|
|
96
96
|
},
|
|
97
|
-
testEnvironment: '
|
|
97
|
+
testEnvironment: path.resolve(__dirname, './ExtendedJSDomEnv.cjs'),
|
|
98
98
|
watchPlugins: [
|
|
99
99
|
'jest-watch-typeahead/filename',
|
|
100
100
|
'jest-watch-typeahead/testname',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "regenerator-runtime/runtime";
|
|
2
2
|
import "@testing-library/jest-dom/jest-globals";
|
|
3
|
-
import jestAxe from "jest-axe";
|
|
4
3
|
import ResizeObserver from "resize-observer-polyfill";
|
|
4
|
+
import { toHaveNoViolations } from "./extended/axe-core";
|
|
5
5
|
import { addMatchMedia } from "./mocks/matchMedia.js";
|
|
6
6
|
import { logger } from "./mocks/pui-diagnostics.js";
|
|
7
7
|
const originalError = console.error;
|
|
@@ -24,7 +24,7 @@ console.error = (...args) => {
|
|
|
24
24
|
return originalError(...args);
|
|
25
25
|
};
|
|
26
26
|
if (expect)
|
|
27
|
-
expect.extend(
|
|
27
|
+
expect.extend(toHaveNoViolations);
|
|
28
28
|
const addElementToBody = (element) => {
|
|
29
29
|
const documentEle = (window || {}).document;
|
|
30
30
|
if (!documentEle)
|
|
@@ -65,6 +65,15 @@ const getAlias = () => {
|
|
|
65
65
|
path.join(monorepoRoot, "./node_modules")
|
|
66
66
|
);
|
|
67
67
|
};
|
|
68
|
+
const getLibraryAlias = (name, alias) => {
|
|
69
|
+
const monorepoRoot = findMonoRepoRoot(process.cwd()) ?? "";
|
|
70
|
+
const aliasPath = path.resolve(
|
|
71
|
+
`${path.join(monorepoRoot, "./node_modules")}/${alias}`
|
|
72
|
+
);
|
|
73
|
+
return {
|
|
74
|
+
[name]: aliasPath
|
|
75
|
+
};
|
|
76
|
+
};
|
|
68
77
|
const modulesToTranspile = [
|
|
69
78
|
"@elliemae/pui-*",
|
|
70
79
|
"@elliemae/ds-*",
|
|
@@ -204,6 +213,7 @@ export {
|
|
|
204
213
|
getAlias,
|
|
205
214
|
getAppVersion,
|
|
206
215
|
getCompressionPlugins,
|
|
216
|
+
getLibraryAlias,
|
|
207
217
|
getLibraryName,
|
|
208
218
|
getLibraryVariableName,
|
|
209
219
|
getMediaPath,
|
|
@@ -2,7 +2,7 @@ import webpack from "webpack";
|
|
|
2
2
|
import MiniCssExtractPlugin from "mini-css-extract-plugin";
|
|
3
3
|
import CopyWebpackPlugin from "copy-webpack-plugin";
|
|
4
4
|
import ResolveTypeScriptPlugin from "resolve-typescript-plugin";
|
|
5
|
-
import { getAlias, getCompressionPlugins } from "./helpers.js";
|
|
5
|
+
import { getAlias, getLibraryAlias, getCompressionPlugins } from "./helpers.js";
|
|
6
6
|
import { isApp } from "../utils.js";
|
|
7
7
|
const IS_APP = isApp();
|
|
8
8
|
const CWD = process.cwd();
|
|
@@ -63,7 +63,14 @@ const webpackFinal = (config, { configType }) => {
|
|
|
63
63
|
config.plugins = config?.plugins?.concat(getCompressionPlugins());
|
|
64
64
|
}
|
|
65
65
|
if (config.resolve) {
|
|
66
|
-
config.resolve.alias = {
|
|
66
|
+
config.resolve.alias = {
|
|
67
|
+
...config?.resolve?.alias,
|
|
68
|
+
...getAlias(),
|
|
69
|
+
...getLibraryAlias(
|
|
70
|
+
"@reduxjs/toolkit/query/react",
|
|
71
|
+
"@reduxjs/toolkit/dist/query/react/rtk-query-react.esm.js"
|
|
72
|
+
)
|
|
73
|
+
};
|
|
67
74
|
config.resolve.fallback = { ...config.resolve.fallback, crypto: false };
|
|
68
75
|
config.resolve.extensions?.push(".svg");
|
|
69
76
|
config.resolve.plugins = [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toHaveNoViolations } from './toHaveNoViolations.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AxeResults, Result } from 'axe-core';
|
|
2
|
+
export declare const toHaveNoViolations: {
|
|
3
|
+
toHaveNoViolations(results: AxeResults): {
|
|
4
|
+
message: () => string;
|
|
5
|
+
pass: true;
|
|
6
|
+
actual: Result[];
|
|
7
|
+
} | {
|
|
8
|
+
message: () => string;
|
|
9
|
+
pass: false;
|
|
10
|
+
actual: Result[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
File without changes
|
|
@@ -8,6 +8,9 @@ export declare const getLibraryName: () => string;
|
|
|
8
8
|
export declare const getLibraryVariableName: () => string[];
|
|
9
9
|
export declare const mapToFolder: (dependencies: string[], folder: string) => {};
|
|
10
10
|
export declare const getAlias: () => {};
|
|
11
|
+
export declare const getLibraryAlias: (name: string, alias: string) => {
|
|
12
|
+
[x: string]: string;
|
|
13
|
+
};
|
|
11
14
|
export declare const modulesToTranspile: string[];
|
|
12
15
|
export declare const getAppVersion: () => string;
|
|
13
16
|
export declare const getPaths: (latestVersion?: boolean) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "9.0.0-next.
|
|
3
|
+
"version": "9.0.0-next.18",
|
|
4
4
|
"description": "ICE MT UI Platform CLI",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@axe-core/react": "~4.7.3",
|
|
81
81
|
"@babel/cli": "~7.22.15",
|
|
82
|
-
"@babel/core": "~7.22.
|
|
82
|
+
"@babel/core": "~7.22.20",
|
|
83
83
|
"@babel/eslint-parser": "~7.22.15",
|
|
84
|
-
"@babel/node": "~7.22.
|
|
84
|
+
"@babel/node": "~7.22.19",
|
|
85
85
|
"@babel/plugin-proposal-class-properties": "~7.18.6",
|
|
86
86
|
"@babel/plugin-proposal-export-default-from": "~7.22.17",
|
|
87
87
|
"@babel/plugin-syntax-dynamic-import": "~7.8.3",
|
|
@@ -91,14 +91,14 @@
|
|
|
91
91
|
"@babel/plugin-transform-react-inline-elements": "~7.22.5",
|
|
92
92
|
"@babel/plugin-transform-react-jsx-source": "~7.22.5",
|
|
93
93
|
"@babel/plugin-transform-runtime": "~7.22.15",
|
|
94
|
-
"@babel/preset-env": "~7.22.
|
|
94
|
+
"@babel/preset-env": "~7.22.20",
|
|
95
95
|
"@babel/preset-react": "~7.22.15",
|
|
96
96
|
"@babel/preset-typescript": "~7.22.15",
|
|
97
97
|
"@babel/runtime": "~7.22.15",
|
|
98
98
|
"@commitlint/cli": "~17.7.1",
|
|
99
99
|
"@commitlint/config-conventional": "~17.7.0",
|
|
100
100
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.8.0",
|
|
101
|
-
"@faker-js/faker": "8.0
|
|
101
|
+
"@faker-js/faker": "8.1.0",
|
|
102
102
|
"@nrwl/cli": "15.9.3",
|
|
103
103
|
"@nrwl/tao": "16.8.1",
|
|
104
104
|
"@nrwl/workspace": "16.8.1",
|
|
@@ -106,54 +106,54 @@
|
|
|
106
106
|
"@semantic-release/changelog": "~6.0.3",
|
|
107
107
|
"@semantic-release/exec": "~6.0.3",
|
|
108
108
|
"@semantic-release/git": "~10.0.1",
|
|
109
|
-
"@storybook/addon-a11y": "~7.4.
|
|
110
|
-
"@storybook/addon-essentials": "~7.4.
|
|
109
|
+
"@storybook/addon-a11y": "~7.4.4",
|
|
110
|
+
"@storybook/addon-essentials": "~7.4.4",
|
|
111
111
|
"@storybook/addon-events": "~6.2.9",
|
|
112
|
-
"@storybook/addon-interactions": "~7.4.
|
|
113
|
-
"@storybook/addon-links": "~7.4.
|
|
114
|
-
"@storybook/addon-storysource": "~7.4.
|
|
115
|
-
"@storybook/blocks": "~7.4.
|
|
116
|
-
"@storybook/builder-vite": "~7.4.
|
|
117
|
-
"@storybook/builder-webpack5": "~7.4.
|
|
112
|
+
"@storybook/addon-interactions": "~7.4.4",
|
|
113
|
+
"@storybook/addon-links": "~7.4.4",
|
|
114
|
+
"@storybook/addon-storysource": "~7.4.4",
|
|
115
|
+
"@storybook/blocks": "~7.4.4",
|
|
116
|
+
"@storybook/builder-vite": "~7.4.4",
|
|
117
|
+
"@storybook/builder-webpack5": "~7.4.4",
|
|
118
118
|
"@storybook/jest": "~0.2.2",
|
|
119
119
|
"@storybook/manager-webpack5": "~6.5.16",
|
|
120
|
-
"@storybook/react": "~7.4.
|
|
121
|
-
"@storybook/react-vite": "~7.4.
|
|
122
|
-
"@storybook/react-webpack5": "~7.4.
|
|
123
|
-
"@storybook/testing-library": "~0.2.
|
|
124
|
-
"@storybook/theming": "~7.4.
|
|
120
|
+
"@storybook/react": "~7.4.4",
|
|
121
|
+
"@storybook/react-vite": "~7.4.4",
|
|
122
|
+
"@storybook/react-webpack5": "~7.4.4",
|
|
123
|
+
"@storybook/testing-library": "~0.2.1",
|
|
124
|
+
"@storybook/theming": "~7.4.4",
|
|
125
125
|
"@stylelint/postcss-css-in-js": "~0.38.0",
|
|
126
126
|
"@svgr/webpack": "~8.1.0",
|
|
127
127
|
"@swc/cli": "~0.1.62",
|
|
128
|
-
"@swc/core": "~1.3.
|
|
128
|
+
"@swc/core": "~1.3.87",
|
|
129
129
|
"@swc/jest": "~0.2.29",
|
|
130
130
|
"@testing-library/jest-dom": "~6.1.3",
|
|
131
131
|
"@testing-library/react": "~14.0.0",
|
|
132
132
|
"@testing-library/react-hooks": "~8.0.1",
|
|
133
|
-
"@testing-library/user-event": "~14.
|
|
133
|
+
"@testing-library/user-event": "~14.5.1",
|
|
134
134
|
"@types/circular-dependency-plugin": "~5.0.6",
|
|
135
135
|
"@types/compression": "~1.7.3",
|
|
136
136
|
"@types/cors": "~2.8.14",
|
|
137
137
|
"@types/duplicate-package-checker-webpack-plugin": "~2.1.2",
|
|
138
138
|
"@types/ip": "~1.1.0",
|
|
139
|
-
"@types/jest": "~29.5.
|
|
140
|
-
"@types/jest-axe": "~3.5.
|
|
139
|
+
"@types/jest": "~29.5.5",
|
|
140
|
+
"@types/jest-axe": "~3.5.6",
|
|
141
141
|
"@types/moment-locales-webpack-plugin": "~1.2.3",
|
|
142
|
-
"@types/node": "~20.
|
|
142
|
+
"@types/node": "~20.6.3",
|
|
143
143
|
"@types/normalize-path": "~3.0.0",
|
|
144
144
|
"@types/postcss-preset-env": "~8.0.0",
|
|
145
145
|
"@types/rimraf": "~4.0.5",
|
|
146
146
|
"@types/speed-measure-webpack-plugin": "~1.3.4",
|
|
147
147
|
"@types/supertest": "~2.0.12",
|
|
148
|
-
"@types/uuid": "~9.0.
|
|
148
|
+
"@types/uuid": "~9.0.4",
|
|
149
149
|
"@types/testing-library__jest-dom": "~5.14.9",
|
|
150
150
|
"@types/webpack-bundle-analyzer": "~4.6.0",
|
|
151
|
-
"@typescript-eslint/eslint-plugin": "~6.
|
|
152
|
-
"@typescript-eslint/parser": "~6.
|
|
151
|
+
"@typescript-eslint/eslint-plugin": "~6.7.2",
|
|
152
|
+
"@typescript-eslint/parser": "~6.7.2",
|
|
153
153
|
"@vitejs/plugin-react": "~4.0.4",
|
|
154
154
|
"@vitest/coverage-c8": "~0.33.0",
|
|
155
|
-
"autoprefixer": "~10.4.
|
|
156
|
-
"axe-core": "~4.8.
|
|
155
|
+
"autoprefixer": "~10.4.16",
|
|
156
|
+
"axe-core": "~4.8.2",
|
|
157
157
|
"babel-plugin-date-fns": "~2.0.0",
|
|
158
158
|
"babel-plugin-dynamic-import-node": "~2.3.3",
|
|
159
159
|
"babel-plugin-import-remove-resource-query": "~1.0.0",
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"babel-plugin-transform-remove-console": "~6.9.4",
|
|
166
166
|
"babel-plugin-transform-strip-block": "~0.0.5",
|
|
167
167
|
"body-parser": "~1.20.2",
|
|
168
|
-
"browserslist": "~4.21.
|
|
168
|
+
"browserslist": "~4.21.11",
|
|
169
169
|
"browserslist-to-esbuild": "~1.2.0",
|
|
170
170
|
"chalk": "~5.3.0",
|
|
171
171
|
"circular-dependency-plugin": "~5.2.2",
|
|
@@ -176,37 +176,37 @@
|
|
|
176
176
|
"cross-env": "~7.0.3",
|
|
177
177
|
"css-loader": "~6.8.1",
|
|
178
178
|
"css-minimizer-webpack-plugin": "~5.0.1",
|
|
179
|
-
"depcheck": "~1.4.
|
|
179
|
+
"depcheck": "~1.4.6",
|
|
180
180
|
"docdash": "~2.0.2",
|
|
181
181
|
"dotenv": "~16.3.1",
|
|
182
182
|
"dotenv-webpack": "~8.0.1",
|
|
183
183
|
"duplicate-package-checker-webpack-plugin": "~3.0.0",
|
|
184
184
|
"enhanced-resolve": "5.15.0",
|
|
185
|
-
"esbuild": "~0.19.
|
|
185
|
+
"esbuild": "~0.19.3",
|
|
186
186
|
"esbuild-loader": "~4.0.2",
|
|
187
187
|
"esbuild-plugin-lodash": "~1.2.0",
|
|
188
188
|
"esbuild-plugin-svgr": "~2.1.0",
|
|
189
|
-
"eslint": "~8.
|
|
189
|
+
"eslint": "~8.49.0",
|
|
190
190
|
"eslint-config-airbnb": "~19.0.4",
|
|
191
191
|
"eslint-config-airbnb-base": "~15.0.0",
|
|
192
192
|
"eslint-config-airbnb-typescript": "~17.1.0",
|
|
193
193
|
"eslint-config-prettier": "~9.0.0",
|
|
194
194
|
"eslint-config-react-app": "~7.0.1",
|
|
195
195
|
"eslint-import-resolver-babel-module": "~5.3.2",
|
|
196
|
-
"eslint-import-resolver-typescript": "~3.6.
|
|
196
|
+
"eslint-import-resolver-typescript": "~3.6.1",
|
|
197
197
|
"eslint-import-resolver-webpack": "~0.13.7",
|
|
198
198
|
"eslint-plugin-compat": "~4.2.0",
|
|
199
199
|
"eslint-plugin-eslint-comments": "~3.2.0",
|
|
200
200
|
"eslint-plugin-import": "~2.28.1",
|
|
201
|
-
"eslint-plugin-jest": "~27.
|
|
202
|
-
"eslint-plugin-jsdoc": "~46.
|
|
201
|
+
"eslint-plugin-jest": "~27.4.0",
|
|
202
|
+
"eslint-plugin-jsdoc": "~46.8.2",
|
|
203
203
|
"eslint-plugin-jsx-a11y": "~6.7.1",
|
|
204
204
|
"eslint-plugin-mdx": "~2.2.0",
|
|
205
205
|
"eslint-plugin-prettier": "~5.0.0",
|
|
206
206
|
"eslint-plugin-react": "~7.33.2",
|
|
207
207
|
"eslint-plugin-react-hooks": "~4.6.0",
|
|
208
208
|
"eslint-plugin-redux-saga": "~1.3.2",
|
|
209
|
-
"eslint-plugin-storybook": "~0.6.
|
|
209
|
+
"eslint-plugin-storybook": "~0.6.14",
|
|
210
210
|
"eslint-plugin-testing-library": "~6.0.1",
|
|
211
211
|
"eslint-plugin-wdio": "~8.8.7",
|
|
212
212
|
"execa": "~8.0.1",
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
"fast-glob": "~3.3.1",
|
|
218
218
|
"find-up": "~6.3.0",
|
|
219
219
|
"find-up-cli": "~5.0.0",
|
|
220
|
-
"happy-dom": "~
|
|
220
|
+
"happy-dom": "~12.1.6",
|
|
221
221
|
"helmet-csp": "~3.4.0",
|
|
222
222
|
"html-loader": "~4.2.0",
|
|
223
223
|
"html-webpack-plugin": "~5.5.3",
|
|
@@ -227,39 +227,39 @@
|
|
|
227
227
|
"imports-loader": "~4.0.1",
|
|
228
228
|
"ip": "~1.1.8",
|
|
229
229
|
"jest-axe": "~8.0.0",
|
|
230
|
-
"jest-cli": "~29.
|
|
231
|
-
"jest-environment-jsdom": "~29.
|
|
230
|
+
"jest-cli": "~29.7.0",
|
|
231
|
+
"jest-environment-jsdom": "~29.7.0",
|
|
232
232
|
"jest-sonar-reporter": "~2.0.0",
|
|
233
233
|
"jest-styled-components": "~7.1.1",
|
|
234
234
|
"jest-watch-typeahead": "~2.2.2",
|
|
235
235
|
"jscodeshift": "~0.15.0",
|
|
236
236
|
"jsdoc": "~4.0.2",
|
|
237
|
-
"lerna": "~7.
|
|
237
|
+
"lerna": "~7.3.0",
|
|
238
238
|
"lint-staged": "~14.0.1",
|
|
239
239
|
"mini-css-extract-plugin": "~2.7.6",
|
|
240
240
|
"minimist": "~1.2.8",
|
|
241
241
|
"moment": "~2.29.4",
|
|
242
242
|
"moment-locales-webpack-plugin": "~1.2.0",
|
|
243
|
-
"msw": "~1.3.
|
|
243
|
+
"msw": "~1.3.1",
|
|
244
244
|
"npm-run-all": "~4.1.5",
|
|
245
245
|
"node-gyp": "~9.4.0",
|
|
246
246
|
"node-plop": "~0.32.0",
|
|
247
247
|
"nodemon": "~3.0.1",
|
|
248
248
|
"normalize-path": "~3.0.0",
|
|
249
|
-
"npm-check-updates": "16.
|
|
249
|
+
"npm-check-updates": "16.14.4",
|
|
250
250
|
"pino": "~8.15.1",
|
|
251
251
|
"pino-http": "~8.5.0",
|
|
252
252
|
"pino-pretty": "~10.2.0",
|
|
253
253
|
"plop": "~4.0.0",
|
|
254
|
-
"postcss": "~8.4.
|
|
254
|
+
"postcss": "~8.4.30",
|
|
255
255
|
"postcss-html": "~1.5.0",
|
|
256
256
|
"postcss-jsx": "~0.36.4",
|
|
257
257
|
"postcss-loader": "~7.3.3",
|
|
258
258
|
"postcss-markdown": "~1.2.0",
|
|
259
|
-
"postcss-preset-env": "~9.1.
|
|
259
|
+
"postcss-preset-env": "~9.1.4",
|
|
260
260
|
"postcss-syntax": "~0.36.2",
|
|
261
261
|
"prettier": "~3.0.3",
|
|
262
|
-
"prisma": "~5.
|
|
262
|
+
"prisma": "~5.3.1",
|
|
263
263
|
"pug": "~3.0.2",
|
|
264
264
|
"pug-loader": "~2.4.0",
|
|
265
265
|
"raf": "~3.4.1",
|
|
@@ -269,10 +269,10 @@
|
|
|
269
269
|
"resize-observer-polyfill": "~1.5.1",
|
|
270
270
|
"resolve-typescript-plugin": "~2.0.1",
|
|
271
271
|
"rimraf": "~5.0.1",
|
|
272
|
-
"semantic-release": "~
|
|
272
|
+
"semantic-release": "~22.0.1",
|
|
273
273
|
"slackify-markdown": "~4.4.0",
|
|
274
274
|
"speed-measure-webpack-plugin": "~1.5.0",
|
|
275
|
-
"storybook": "~7.4.
|
|
275
|
+
"storybook": "~7.4.4",
|
|
276
276
|
"storybook-addon-turbo-build": "~2.0.1",
|
|
277
277
|
"storybook-react-router": "~1.0.8",
|
|
278
278
|
"style-loader": "~3.3.3",
|
|
@@ -281,33 +281,34 @@
|
|
|
281
281
|
"stylelint-config-styled-components": "~0.1.1",
|
|
282
282
|
"supertest": "~6.3.3",
|
|
283
283
|
"swc-loader": "~0.2.3",
|
|
284
|
+
"tsconfig-paths-webpack-plugin": "~4.1.0",
|
|
284
285
|
"ts-node": "~10.9.1",
|
|
285
|
-
"tsc-alias": "~1.8.
|
|
286
|
-
"tsx": "~3.12.
|
|
286
|
+
"tsc-alias": "~1.8.8",
|
|
287
|
+
"tsx": "~3.12.10",
|
|
287
288
|
"typedoc": "~0.25.1",
|
|
288
289
|
"typescript": "~5.2.2",
|
|
289
290
|
"update-notifier": "~6.0.2",
|
|
290
291
|
"url-loader": "~4.1.1",
|
|
291
|
-
"uuid": "~9.0.
|
|
292
|
+
"uuid": "~9.0.1",
|
|
292
293
|
"vite": "~4.4.9",
|
|
293
|
-
"vitest": "~0.34.
|
|
294
|
-
"vite-tsconfig-paths": "~4.2.
|
|
294
|
+
"vitest": "~0.34.5",
|
|
295
|
+
"vite-tsconfig-paths": "~4.2.1",
|
|
295
296
|
"webpack": "~5.88.2",
|
|
296
297
|
"webpack-bundle-analyzer": "~4.9.1",
|
|
297
298
|
"webpack-cli": "~5.1.4",
|
|
298
299
|
"webpack-dev-server": "~4.15.1",
|
|
299
300
|
"webpack-manifest-plugin": "~5.0.0",
|
|
300
301
|
"webpack-merge": "~5.9.0",
|
|
301
|
-
"whatwg-fetch": "~3.6.
|
|
302
|
+
"whatwg-fetch": "~3.6.19",
|
|
302
303
|
"workbox-webpack-plugin": "~7.0.0",
|
|
303
304
|
"yargs": "~17.7.2"
|
|
304
305
|
},
|
|
305
306
|
"devDependencies": {
|
|
306
|
-
"@elliemae/pui-doc-gen": "~1.
|
|
307
|
+
"@elliemae/pui-doc-gen": "~1.8.0",
|
|
307
308
|
"react": "~18.2.0",
|
|
308
309
|
"react-dom": "~18.2.0",
|
|
309
310
|
"redux": "~4.2.1",
|
|
310
311
|
"redux-saga": "~1.2.3",
|
|
311
|
-
"styled-components": "~6.0.
|
|
312
|
+
"styled-components": "~6.0.8"
|
|
312
313
|
}
|
|
313
314
|
}
|