@elliemae/pui-cli 9.0.0-next.15 → 9.0.0-next.17
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/commands/start.js +1 -1
- package/dist/cjs/commands/test.js +2 -2
- 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-test-env.js +1 -1
- package/dist/cjs/testing/setup-tests.js +3 -3
- package/dist/cjs/webpack/helpers.js +2 -0
- package/dist/esm/commands/start.js +1 -1
- package/dist/esm/commands/test.js +2 -2
- 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-test-env.js +1 -1
- package/dist/esm/testing/setup-tests.js +3 -3
- package/dist/esm/webpack/helpers.js +2 -0
- package/dist/types/commands/utils.d.ts +1 -1
- 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/testing/vitest.config.d.ts +1 -1
- package/dist/types/tests/basic.test.d.ts +0 -0
- package/package.json +98 -97
|
@@ -39,7 +39,7 @@ const import_meta = {};
|
|
|
39
39
|
const __dirname = import_node_path.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url));
|
|
40
40
|
const startProdServer = async () => {
|
|
41
41
|
await (0, import_utils.exec)(
|
|
42
|
-
`cross-env NODE_ENV=production
|
|
42
|
+
`cross-env NODE_ENV=production tsx ${import_node_path.default.resolve(
|
|
43
43
|
__dirname,
|
|
44
44
|
"../server/index.js"
|
|
45
45
|
)} --color always`
|
|
@@ -78,9 +78,9 @@ const testCmd = {
|
|
|
78
78
|
handler: async (argv) => {
|
|
79
79
|
let commandOptions = "--coverage --maxWorkers=50%";
|
|
80
80
|
if (argv.fix)
|
|
81
|
-
commandOptions
|
|
81
|
+
commandOptions += " -u";
|
|
82
82
|
else if (argv.watch)
|
|
83
|
-
commandOptions
|
|
83
|
+
commandOptions += " --watchAll";
|
|
84
84
|
if ((0, import_utils.getCIEnv)())
|
|
85
85
|
commandOptions += " --ci --no-colors";
|
|
86
86
|
if (argv.passWithNoTests)
|
|
@@ -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',
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var import_vitest = require("vitest");
|
|
3
3
|
var import_jest_styled_components = require("jest-styled-components");
|
|
4
4
|
var import_react = require("@testing-library/react");
|
|
5
|
-
var
|
|
5
|
+
var import_jest_globals = require("@testing-library/jest-dom/jest-globals");
|
|
6
6
|
(0, import_vitest.afterEach)(() => {
|
|
7
7
|
(0, import_react.cleanup)();
|
|
8
8
|
});
|
|
@@ -22,9 +22,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
22
|
mod
|
|
23
23
|
));
|
|
24
24
|
var import_runtime = require("regenerator-runtime/runtime");
|
|
25
|
-
var
|
|
26
|
-
var import_jest_axe = __toESM(require("jest-axe"), 1);
|
|
25
|
+
var import_jest_globals = require("@testing-library/jest-dom/jest-globals");
|
|
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)
|
|
@@ -5,7 +5,7 @@ import { exec, logError, logSuccess, isApp } from "./utils.js";
|
|
|
5
5
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
6
6
|
const startProdServer = async () => {
|
|
7
7
|
await exec(
|
|
8
|
-
`cross-env NODE_ENV=production
|
|
8
|
+
`cross-env NODE_ENV=production tsx ${path.resolve(
|
|
9
9
|
__dirname,
|
|
10
10
|
"../server/index.js"
|
|
11
11
|
)} --color always`
|
|
@@ -45,9 +45,9 @@ const testCmd = {
|
|
|
45
45
|
handler: async (argv) => {
|
|
46
46
|
let commandOptions = "--coverage --maxWorkers=50%";
|
|
47
47
|
if (argv.fix)
|
|
48
|
-
commandOptions
|
|
48
|
+
commandOptions += " -u";
|
|
49
49
|
else if (argv.watch)
|
|
50
|
-
commandOptions
|
|
50
|
+
commandOptions += " --watchAll";
|
|
51
51
|
if (getCIEnv())
|
|
52
52
|
commandOptions += " --ci --no-colors";
|
|
53
53
|
if (argv.passWithNoTests)
|
|
@@ -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
|
-
import "@testing-library/jest-dom/
|
|
3
|
-
import jestAxe from "jest-axe";
|
|
2
|
+
import "@testing-library/jest-dom/jest-globals";
|
|
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)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
export declare const exec: (command: string, options?: import("execa").Options<
|
|
2
|
+
export declare const exec: (command: string, options?: import("execa").Options<import("execa").BufferEncodingOption> | undefined) => Promise<import("execa").ExecaReturnValue<Buffer>>;
|
|
3
3
|
export declare const logInfo: {
|
|
4
4
|
(...data: any[]): void;
|
|
5
5
|
(message?: any, ...optionalParams: any[]): void;
|
|
@@ -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
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const vitestConfig: import("
|
|
1
|
+
export declare const vitestConfig: import("vite").UserConfig;
|
|
File without changes
|
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.17",
|
|
4
4
|
"description": "ICE MT UI Platform CLI",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -51,21 +51,21 @@
|
|
|
51
51
|
"author": "ICE MT",
|
|
52
52
|
"license": "MIT",
|
|
53
53
|
"scripts": {
|
|
54
|
-
"build": "
|
|
55
|
-
"build:dev": "
|
|
54
|
+
"build": "tsx ./lib/cli.ts pack -p -t node",
|
|
55
|
+
"build:dev": "tsx ./lib/cli.ts pack -t node",
|
|
56
56
|
"docs:start": "docusaurus start",
|
|
57
57
|
"docs:build": "docusaurus build --out-dir build/docs",
|
|
58
58
|
"docs:version": "docusaurus docs:version",
|
|
59
59
|
"docs:serve": "docusaurus serve",
|
|
60
|
-
"lint": "
|
|
61
|
-
"lint:fix": "
|
|
60
|
+
"lint": "tsx ./lib/cli.ts lint",
|
|
61
|
+
"lint:fix": "tsx ./lib/cli.ts lint --fix",
|
|
62
62
|
"prettify": "prettier --write",
|
|
63
63
|
"release": "semantic-release",
|
|
64
64
|
"storybook:build": "exit 0",
|
|
65
65
|
"storybook:docs:build": "exit 0",
|
|
66
|
-
"test": "
|
|
66
|
+
"test": "tsx ./lib/cli.ts test -p",
|
|
67
67
|
"test:staged": "jest --coverage --passWithNoTests --bail --findRelatedTests",
|
|
68
|
-
"tscheck": "
|
|
68
|
+
"tscheck": "tsx ./lib/cli.ts tscheck --files",
|
|
69
69
|
"setup": "rimraf node_modules && rimraf pnpm-lock.yaml && pnpm i",
|
|
70
70
|
"upgrade": "ncu -u && npm run setup",
|
|
71
71
|
"prepare": "[ -n \"$CI\" ] || husky install"
|
|
@@ -78,82 +78,82 @@
|
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@axe-core/react": "~4.7.3",
|
|
81
|
-
"@babel/cli": "~7.22.
|
|
82
|
-
"@babel/core": "~7.22.
|
|
83
|
-
"@babel/eslint-parser": "~7.22.
|
|
84
|
-
"@babel/node": "~7.22.
|
|
81
|
+
"@babel/cli": "~7.22.15",
|
|
82
|
+
"@babel/core": "~7.22.17",
|
|
83
|
+
"@babel/eslint-parser": "~7.22.15",
|
|
84
|
+
"@babel/node": "~7.22.15",
|
|
85
85
|
"@babel/plugin-proposal-class-properties": "~7.18.6",
|
|
86
|
-
"@babel/plugin-proposal-export-default-from": "~7.22.
|
|
86
|
+
"@babel/plugin-proposal-export-default-from": "~7.22.17",
|
|
87
87
|
"@babel/plugin-syntax-dynamic-import": "~7.8.3",
|
|
88
88
|
"@babel/plugin-syntax-import-assertions": "~7.22.5",
|
|
89
|
-
"@babel/plugin-transform-modules-commonjs": "~7.22.
|
|
89
|
+
"@babel/plugin-transform-modules-commonjs": "~7.22.15",
|
|
90
90
|
"@babel/plugin-transform-react-constant-elements": "~7.22.5",
|
|
91
91
|
"@babel/plugin-transform-react-inline-elements": "~7.22.5",
|
|
92
92
|
"@babel/plugin-transform-react-jsx-source": "~7.22.5",
|
|
93
|
-
"@babel/plugin-transform-runtime": "~7.22.
|
|
94
|
-
"@babel/preset-env": "~7.22.
|
|
95
|
-
"@babel/preset-react": "~7.22.
|
|
96
|
-
"@babel/preset-typescript": "~7.22.
|
|
97
|
-
"@babel/runtime": "~7.22.
|
|
98
|
-
"@commitlint/cli": "~17.
|
|
99
|
-
"@commitlint/config-conventional": "~17.
|
|
100
|
-
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.
|
|
93
|
+
"@babel/plugin-transform-runtime": "~7.22.15",
|
|
94
|
+
"@babel/preset-env": "~7.22.15",
|
|
95
|
+
"@babel/preset-react": "~7.22.15",
|
|
96
|
+
"@babel/preset-typescript": "~7.22.15",
|
|
97
|
+
"@babel/runtime": "~7.22.15",
|
|
98
|
+
"@commitlint/cli": "~17.7.1",
|
|
99
|
+
"@commitlint/config-conventional": "~17.7.0",
|
|
100
|
+
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.8.0",
|
|
101
101
|
"@faker-js/faker": "8.0.2",
|
|
102
102
|
"@nrwl/cli": "15.9.3",
|
|
103
|
-
"@nrwl/tao": "16.
|
|
104
|
-
"@nrwl/workspace": "16.
|
|
105
|
-
"@pmmmwh/react-refresh-webpack-plugin": "~0.5.
|
|
103
|
+
"@nrwl/tao": "16.8.1",
|
|
104
|
+
"@nrwl/workspace": "16.8.1",
|
|
105
|
+
"@pmmmwh/react-refresh-webpack-plugin": "~0.5.11",
|
|
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.
|
|
110
|
-
"@storybook/addon-essentials": "~7.
|
|
109
|
+
"@storybook/addon-a11y": "~7.4.0",
|
|
110
|
+
"@storybook/addon-essentials": "~7.4.0",
|
|
111
111
|
"@storybook/addon-events": "~6.2.9",
|
|
112
|
-
"@storybook/addon-interactions": "~7.
|
|
113
|
-
"@storybook/addon-links": "~7.
|
|
114
|
-
"@storybook/addon-storysource": "~7.
|
|
115
|
-
"@storybook/blocks": "~7.
|
|
116
|
-
"@storybook/builder-vite": "~7.
|
|
117
|
-
"@storybook/builder-webpack5": "~7.
|
|
118
|
-
"@storybook/jest": "~0.
|
|
112
|
+
"@storybook/addon-interactions": "~7.4.0",
|
|
113
|
+
"@storybook/addon-links": "~7.4.0",
|
|
114
|
+
"@storybook/addon-storysource": "~7.4.0",
|
|
115
|
+
"@storybook/blocks": "~7.4.0",
|
|
116
|
+
"@storybook/builder-vite": "~7.4.0",
|
|
117
|
+
"@storybook/builder-webpack5": "~7.4.0",
|
|
118
|
+
"@storybook/jest": "~0.2.2",
|
|
119
119
|
"@storybook/manager-webpack5": "~6.5.16",
|
|
120
|
-
"@storybook/react": "~7.
|
|
121
|
-
"@storybook/react-vite": "~7.
|
|
122
|
-
"@storybook/react-webpack5": "~7.
|
|
120
|
+
"@storybook/react": "~7.4.0",
|
|
121
|
+
"@storybook/react-vite": "~7.4.0",
|
|
122
|
+
"@storybook/react-webpack5": "~7.4.0",
|
|
123
123
|
"@storybook/testing-library": "~0.2.0",
|
|
124
|
-
"@storybook/theming": "~7.
|
|
124
|
+
"@storybook/theming": "~7.4.0",
|
|
125
125
|
"@stylelint/postcss-css-in-js": "~0.38.0",
|
|
126
|
-
"@svgr/webpack": "~8.0
|
|
126
|
+
"@svgr/webpack": "~8.1.0",
|
|
127
127
|
"@swc/cli": "~0.1.62",
|
|
128
|
-
"@swc/core": "~1.3.
|
|
129
|
-
"@swc/jest": "~0.2.
|
|
130
|
-
"@testing-library/jest-dom": "~
|
|
128
|
+
"@swc/core": "~1.3.83",
|
|
129
|
+
"@swc/jest": "~0.2.29",
|
|
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
133
|
"@testing-library/user-event": "~14.4.3",
|
|
134
|
-
"@types/circular-dependency-plugin": "~5.0.
|
|
135
|
-
"@types/compression": "~1.7.
|
|
136
|
-
"@types/cors": "~2.8.
|
|
134
|
+
"@types/circular-dependency-plugin": "~5.0.6",
|
|
135
|
+
"@types/compression": "~1.7.3",
|
|
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.
|
|
139
|
+
"@types/jest": "~29.5.4",
|
|
140
140
|
"@types/jest-axe": "~3.5.5",
|
|
141
141
|
"@types/moment-locales-webpack-plugin": "~1.2.3",
|
|
142
|
-
"@types/node": "~20.
|
|
142
|
+
"@types/node": "~20.5.9",
|
|
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.3",
|
|
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.
|
|
153
|
-
"@vitejs/plugin-react": "~4.0.
|
|
151
|
+
"@typescript-eslint/eslint-plugin": "~6.6.0",
|
|
152
|
+
"@typescript-eslint/parser": "~6.6.0",
|
|
153
|
+
"@vitejs/plugin-react": "~4.0.4",
|
|
154
154
|
"@vitest/coverage-c8": "~0.33.0",
|
|
155
|
-
"autoprefixer": "~10.4.
|
|
156
|
-
"axe-core": "~4.
|
|
155
|
+
"autoprefixer": "~10.4.15",
|
|
156
|
+
"axe-core": "~4.8.1",
|
|
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.10",
|
|
169
169
|
"browserslist-to-esbuild": "~1.2.0",
|
|
170
170
|
"chalk": "~5.3.0",
|
|
171
171
|
"circular-dependency-plugin": "~5.2.2",
|
|
@@ -176,48 +176,48 @@
|
|
|
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.
|
|
180
|
-
"docdash": "~2.0.
|
|
179
|
+
"depcheck": "~1.4.5",
|
|
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.
|
|
186
|
-
"esbuild-loader": "~
|
|
185
|
+
"esbuild": "~0.19.2",
|
|
186
|
+
"esbuild-loader": "~4.0.2",
|
|
187
187
|
"esbuild-plugin-lodash": "~1.2.0",
|
|
188
|
-
"esbuild-plugin-svgr": "~2.
|
|
189
|
-
"eslint": "~8.
|
|
188
|
+
"esbuild-plugin-svgr": "~2.1.0",
|
|
189
|
+
"eslint": "~8.48.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
|
-
"eslint-config-prettier": "~
|
|
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.
|
|
197
|
-
"eslint-import-resolver-webpack": "~0.13.
|
|
198
|
-
"eslint-plugin-compat": "~4.
|
|
196
|
+
"eslint-import-resolver-typescript": "~3.6.0",
|
|
197
|
+
"eslint-import-resolver-webpack": "~0.13.7",
|
|
198
|
+
"eslint-plugin-compat": "~4.2.0",
|
|
199
199
|
"eslint-plugin-eslint-comments": "~3.2.0",
|
|
200
|
-
"eslint-plugin-import": "~2.28.
|
|
200
|
+
"eslint-plugin-import": "~2.28.1",
|
|
201
201
|
"eslint-plugin-jest": "~27.2.3",
|
|
202
|
-
"eslint-plugin-jsdoc": "~46.
|
|
202
|
+
"eslint-plugin-jsdoc": "~46.5.1",
|
|
203
203
|
"eslint-plugin-jsx-a11y": "~6.7.1",
|
|
204
|
-
"eslint-plugin-mdx": "~2.
|
|
204
|
+
"eslint-plugin-mdx": "~2.2.0",
|
|
205
205
|
"eslint-plugin-prettier": "~5.0.0",
|
|
206
|
-
"eslint-plugin-react": "~7.33.
|
|
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
209
|
"eslint-plugin-storybook": "~0.6.13",
|
|
210
|
-
"eslint-plugin-testing-library": "~
|
|
210
|
+
"eslint-plugin-testing-library": "~6.0.1",
|
|
211
211
|
"eslint-plugin-wdio": "~8.8.7",
|
|
212
|
-
"execa": "~
|
|
212
|
+
"execa": "~8.0.1",
|
|
213
213
|
"express": "~4.18.2",
|
|
214
214
|
"express-static-gzip": "~2.1.7",
|
|
215
215
|
"favicons": "~7.1.4",
|
|
216
|
-
"favicons-webpack-plugin": "~6.0.
|
|
216
|
+
"favicons-webpack-plugin": "~6.0.1",
|
|
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": "~11.0.2",
|
|
221
221
|
"helmet-csp": "~3.4.0",
|
|
222
222
|
"html-loader": "~4.2.0",
|
|
223
223
|
"html-webpack-plugin": "~5.5.3",
|
|
@@ -227,77 +227,78 @@
|
|
|
227
227
|
"imports-loader": "~4.0.1",
|
|
228
228
|
"ip": "~1.1.8",
|
|
229
229
|
"jest-axe": "~8.0.0",
|
|
230
|
-
"jest-cli": "~29.6.
|
|
231
|
-
"jest-environment-jsdom": "~29.6.
|
|
230
|
+
"jest-cli": "~29.6.4",
|
|
231
|
+
"jest-environment-jsdom": "~29.6.4",
|
|
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.
|
|
238
|
-
"lint-staged": "~
|
|
237
|
+
"lerna": "~7.2.0",
|
|
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.
|
|
243
|
+
"msw": "~1.3.0",
|
|
244
244
|
"npm-run-all": "~4.1.5",
|
|
245
245
|
"node-gyp": "~9.4.0",
|
|
246
|
-
"node-plop": "~0.
|
|
246
|
+
"node-plop": "~0.32.0",
|
|
247
247
|
"nodemon": "~3.0.1",
|
|
248
248
|
"normalize-path": "~3.0.0",
|
|
249
|
-
"npm-check-updates": "16.
|
|
250
|
-
"pino": "~8.
|
|
251
|
-
"pino-http": "~8.
|
|
249
|
+
"npm-check-updates": "16.13.3",
|
|
250
|
+
"pino": "~8.15.1",
|
|
251
|
+
"pino-http": "~8.5.0",
|
|
252
252
|
"pino-pretty": "~10.2.0",
|
|
253
|
-
"plop": "~
|
|
254
|
-
"postcss": "~8.4.
|
|
253
|
+
"plop": "~4.0.0",
|
|
254
|
+
"postcss": "~8.4.29",
|
|
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.3",
|
|
260
260
|
"postcss-syntax": "~0.36.2",
|
|
261
|
-
"prettier": "~3.0.
|
|
262
|
-
"prisma": "~5.
|
|
261
|
+
"prettier": "~3.0.3",
|
|
262
|
+
"prisma": "~5.2.0",
|
|
263
263
|
"pug": "~3.0.2",
|
|
264
264
|
"pug-loader": "~2.4.0",
|
|
265
265
|
"raf": "~3.4.1",
|
|
266
|
-
"react-docgen": "~6.0.
|
|
266
|
+
"react-docgen": "~6.0.4",
|
|
267
267
|
"react-refresh": "~0.14.0",
|
|
268
268
|
"react-test-renderer": "~18.2.0",
|
|
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": "~21.
|
|
273
|
-
"slackify-markdown": "~4.
|
|
272
|
+
"semantic-release": "~21.1.1",
|
|
273
|
+
"slackify-markdown": "~4.4.0",
|
|
274
274
|
"speed-measure-webpack-plugin": "~1.5.0",
|
|
275
|
-
"storybook": "~7.
|
|
275
|
+
"storybook": "~7.4.0",
|
|
276
276
|
"storybook-addon-turbo-build": "~2.0.1",
|
|
277
277
|
"storybook-react-router": "~1.0.8",
|
|
278
278
|
"style-loader": "~3.3.3",
|
|
279
|
-
"stylelint": "~15.10.
|
|
279
|
+
"stylelint": "~15.10.3",
|
|
280
280
|
"stylelint-config-recommended": "~13.0.0",
|
|
281
281
|
"stylelint-config-styled-components": "~0.1.1",
|
|
282
282
|
"supertest": "~6.3.3",
|
|
283
283
|
"swc-loader": "~0.2.3",
|
|
284
284
|
"ts-node": "~10.9.1",
|
|
285
285
|
"tsc-alias": "~1.8.7",
|
|
286
|
-
"
|
|
287
|
-
"
|
|
286
|
+
"tsx": "~3.12.8",
|
|
287
|
+
"typedoc": "~0.25.1",
|
|
288
|
+
"typescript": "~5.2.2",
|
|
288
289
|
"update-notifier": "~6.0.2",
|
|
289
290
|
"url-loader": "~4.1.1",
|
|
290
291
|
"uuid": "~9.0.0",
|
|
291
|
-
"vite": "~4.4.
|
|
292
|
-
"vitest": "~0.
|
|
292
|
+
"vite": "~4.4.9",
|
|
293
|
+
"vitest": "~0.34.4",
|
|
293
294
|
"vite-tsconfig-paths": "~4.2.0",
|
|
294
295
|
"webpack": "~5.88.2",
|
|
295
|
-
"webpack-bundle-analyzer": "~4.9.
|
|
296
|
+
"webpack-bundle-analyzer": "~4.9.1",
|
|
296
297
|
"webpack-cli": "~5.1.4",
|
|
297
298
|
"webpack-dev-server": "~4.15.1",
|
|
298
299
|
"webpack-manifest-plugin": "~5.0.0",
|
|
299
300
|
"webpack-merge": "~5.9.0",
|
|
300
|
-
"whatwg-fetch": "~3.6.
|
|
301
|
+
"whatwg-fetch": "~3.6.18",
|
|
301
302
|
"workbox-webpack-plugin": "~7.0.0",
|
|
302
303
|
"yargs": "~17.7.2"
|
|
303
304
|
},
|
|
@@ -307,6 +308,6 @@
|
|
|
307
308
|
"react-dom": "~18.2.0",
|
|
308
309
|
"redux": "~4.2.1",
|
|
309
310
|
"redux-saga": "~1.2.3",
|
|
310
|
-
"styled-components": "~6.0.
|
|
311
|
+
"styled-components": "~6.0.7"
|
|
311
312
|
}
|
|
312
313
|
}
|