@elliemae/ds-test-utils 3.1.0-next.21

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.
@@ -0,0 +1,96 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
+ var __spreadValues = (a, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ if (__getOwnPropSymbols)
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
+ }
21
+ return a;
22
+ };
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
+ var __export = (target, all) => {
25
+ for (var name in all)
26
+ __defProp(target, name, { get: all[name], enumerable: true });
27
+ };
28
+ var __copyProps = (to, from, except, desc) => {
29
+ if (from && typeof from === "object" || typeof from === "function") {
30
+ for (let key of __getOwnPropNames(from))
31
+ if (!__hasOwnProp.call(to, key) && key !== except)
32
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
33
+ }
34
+ return to;
35
+ };
36
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
37
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
38
+ var src_exports = {};
39
+ __export(src_exports, {
40
+ toHaveNoViolations: () => toHaveNoViolations
41
+ });
42
+ module.exports = __toCommonJS(src_exports);
43
+ var React = __toESM(require("react"));
44
+ var import_jest_matcher_utils = require("jest-matcher-utils");
45
+ const colorYellow = (arg) => `\x1B[93m ${arg || ""} \x1B[0m`;
46
+ const colorGrey = (arg) => `\x1B[90m ${arg || ""} \x1B[0m`;
47
+ const colorBlue = (arg) => `\x1B[34m ${arg || ""} \x1B[0m`;
48
+ const dataAttributeRegexp = /(data-[\S]*)=["']([\S]*)["']/gm;
49
+ const shouldIgnoreNodeViolation = (node, violation) => [...node.html.matchAll(dataAttributeRegexp)].map(([fullMatch, dataKey, dataValue]) => ({
50
+ fullMatch,
51
+ dataKey,
52
+ dataValue
53
+ })).some(({ dataKey, dataValue }) => dataKey === `data-axe-ignore-${violation.id}` && dataValue === "true");
54
+ const reporter = (violToFormat) => {
55
+ if (violToFormat.length === 0)
56
+ return "";
57
+ const lineBreak = "\n\n";
58
+ const horizontalLine = "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500";
59
+ return violToFormat.map((violation) => {
60
+ const errorBody = violation.nodes.map((node) => {
61
+ const selector = node.target.join(", ");
62
+ const expectedText = `Expected the HTML found at $('${selector}') to have no violations:${lineBreak}`;
63
+ return `${expectedText + colorGrey(node.html) + lineBreak}Received:${lineBreak}${(0, import_jest_matcher_utils.printReceived)(`${violation.help} (${violation.id})`)}${lineBreak}${colorYellow(node.failureSummary)}${lineBreak}${violation.helpUrl ? `You can find more information on this issue here:
64
+ ${colorBlue(violation.helpUrl)}` : ""}`;
65
+ }).join(lineBreak);
66
+ return errorBody;
67
+ }).join(lineBreak + horizontalLine + lineBreak);
68
+ };
69
+ const getMessageAndPass = (violations) => {
70
+ const formatedViolations = reporter(violations);
71
+ const pass = formatedViolations.length === 0;
72
+ if (pass)
73
+ return { message: () => "", pass };
74
+ return { message: () => `${(0, import_jest_matcher_utils.matcherHint)(".toHaveNoViolations")}
75
+
76
+ ${formatedViolations}`, pass };
77
+ };
78
+ const toHaveNoViolations = {
79
+ toHaveNoViolations(results) {
80
+ const { violations } = results;
81
+ const finalViolations = [];
82
+ violations.forEach((violation) => {
83
+ const { nodes } = violation;
84
+ const newNodes = [];
85
+ nodes.forEach((node) => {
86
+ if (!shouldIgnoreNodeViolation(node, violation))
87
+ newNodes.push(node);
88
+ });
89
+ if (newNodes.length > 0) {
90
+ finalViolations.push(__spreadProps(__spreadValues({}, violation), { nodes: newNodes }));
91
+ }
92
+ });
93
+ return __spreadValues({ actual: violations }, getMessageAndPass(finalViolations));
94
+ }
95
+ };
96
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import type { AxeResults, NodeResult, Result } from 'axe-core';\nimport { printReceived, matcherHint } from 'jest-matcher-utils';\n\nconst colorYellow = (arg?: string) => `\\x1b[93m ${arg || ''} \\x1b[0m`;\nconst colorGrey = (arg?: string) => `\\x1b[90m ${arg || ''} \\x1b[0m`;\nconst colorBlue = (arg?: string) => `\\x1b[34m ${arg || ''} \\x1b[0m`;\n\nconst dataAttributeRegexp = /(data-[\\S]*)=[\"']([\\S]*)[\"']/gm;\n\nconst shouldIgnoreNodeViolation = (node: NodeResult, violation: Result): boolean =>\n [...node.html.matchAll(dataAttributeRegexp)]\n .map(([fullMatch, dataKey, dataValue]) => ({\n fullMatch,\n dataKey,\n dataValue,\n }))\n .some(({ dataKey, dataValue }) => dataKey === `data-axe-ignore-${violation.id}` && dataValue === 'true');\n\n// relevant code from https://github.com/nickcolley/jest-axe/blob/main/index.js\nconst reporter = (violToFormat: Result[]) => {\n if (violToFormat.length === 0) return '';\n const lineBreak = '\\n\\n';\n const horizontalLine = '\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500';\n return violToFormat\n .map((violation) => {\n const errorBody = violation.nodes\n .map((node) => {\n const selector = node.target.join(', ');\n const expectedText = `Expected the HTML found at $('${selector}') to have no violations:${lineBreak}`;\n return `${expectedText + colorGrey(node.html) + lineBreak}Received:${lineBreak}${printReceived(\n `${violation.help} (${violation.id})`,\n )}${lineBreak}${colorYellow(node.failureSummary)}${lineBreak}${\n violation.helpUrl\n ? `You can find more information on this issue here: \\n${colorBlue(violation.helpUrl)}`\n : ''\n }`;\n })\n .join(lineBreak);\n\n return errorBody;\n })\n .join(lineBreak + horizontalLine + lineBreak);\n};\n\nconst getMessageAndPass = (violations: Result[]) => {\n const formatedViolations = reporter(violations);\n const pass = formatedViolations.length === 0;\n if (pass) return { message: () => '', pass };\n return { message: () => `${matcherHint('.toHaveNoViolations')}\\n\\n${formatedViolations}`, pass };\n};\n\nexport const toHaveNoViolations = {\n toHaveNoViolations(results: AxeResults) {\n const { violations } = results;\n const finalViolations: Result[] = [];\n violations.forEach((violation) => {\n const { nodes } = violation;\n const newNodes: NodeResult[] = [];\n nodes.forEach((node) => {\n if (!shouldIgnoreNodeViolation(node, violation)) newNodes.push(node);\n });\n if (newNodes.length > 0) {\n finalViolations.push({ ...violation, nodes: newNodes });\n }\n });\n\n return { actual: violations, ...getMessageAndPass(finalViolations) };\n },\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,gCAA2C;AAE3C,MAAM,cAAc,CAAC,QAAiB,YAAY,OAAO;AACzD,MAAM,YAAY,CAAC,QAAiB,YAAY,OAAO;AACvD,MAAM,YAAY,CAAC,QAAiB,YAAY,OAAO;AAEvD,MAAM,sBAAsB;AAE5B,MAAM,4BAA4B,CAAC,MAAkB,cACnD,CAAC,GAAG,KAAK,KAAK,SAAS,mBAAmB,CAAC,EACxC,IAAI,CAAC,CAAC,WAAW,SAAS,eAAgB;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AACF,EAAE,EACD,KAAK,CAAC,EAAE,SAAS,gBAAgB,YAAY,mBAAmB,UAAU,QAAQ,cAAc,MAAM;AAG3G,MAAM,WAAW,CAAC,iBAA2B;AAC3C,MAAI,aAAa,WAAW;AAAG,WAAO;AACtC,QAAM,YAAY;AAClB,QAAM,iBAAiB;AACvB,SAAO,aACJ,IAAI,CAAC,cAAc;AAClB,UAAM,YAAY,UAAU,MACzB,IAAI,CAAC,SAAS;AACb,YAAM,WAAW,KAAK,OAAO,KAAK,IAAI;AACtC,YAAM,eAAe,iCAAiC,oCAAoC;AAC1F,aAAO,GAAG,eAAe,UAAU,KAAK,IAAI,IAAI,qBAAqB,YAAY,6CAC/E,GAAG,UAAU,SAAS,UAAU,KAClC,IAAI,YAAY,YAAY,KAAK,cAAc,IAAI,YACjD,UAAU,UACN;AAAA,EAAuD,UAAU,UAAU,OAAO,MAClF;AAAA,IAER,CAAC,EACA,KAAK,SAAS;AAEjB,WAAO;AAAA,EACT,CAAC,EACA,KAAK,YAAY,iBAAiB,SAAS;AAChD;AAEA,MAAM,oBAAoB,CAAC,eAAyB;AAClD,QAAM,qBAAqB,SAAS,UAAU;AAC9C,QAAM,OAAO,mBAAmB,WAAW;AAC3C,MAAI;AAAM,WAAO,EAAE,SAAS,MAAM,IAAI,KAAK;AAC3C,SAAO,EAAE,SAAS,MAAM,GAAG,2CAAY,qBAAqB;AAAA;AAAA,EAAQ,sBAAsB,KAAK;AACjG;AAEO,MAAM,qBAAqB;AAAA,EAChC,mBAAmB,SAAqB;AACtC,UAAM,EAAE,eAAe;AACvB,UAAM,kBAA4B,CAAC;AACnC,eAAW,QAAQ,CAAC,cAAc;AAChC,YAAM,EAAE,UAAU;AAClB,YAAM,WAAyB,CAAC;AAChC,YAAM,QAAQ,CAAC,SAAS;AACtB,YAAI,CAAC,0BAA0B,MAAM,SAAS;AAAG,mBAAS,KAAK,IAAI;AAAA,MACrE,CAAC;AACD,UAAI,SAAS,SAAS,GAAG;AACvB,wBAAgB,KAAK,iCAAK,YAAL,EAAgB,OAAO,SAAS,EAAC;AAAA,MACxD;AAAA,IACF,CAAC;AAED,WAAO,iBAAE,QAAQ,cAAe,kBAAkB,eAAe;AAAA,EACnE;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,76 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ import * as React from "react";
21
+ import { printReceived, matcherHint } from "jest-matcher-utils";
22
+ const colorYellow = (arg) => `\x1B[93m ${arg || ""} \x1B[0m`;
23
+ const colorGrey = (arg) => `\x1B[90m ${arg || ""} \x1B[0m`;
24
+ const colorBlue = (arg) => `\x1B[34m ${arg || ""} \x1B[0m`;
25
+ const dataAttributeRegexp = /(data-[\S]*)=["']([\S]*)["']/gm;
26
+ const shouldIgnoreNodeViolation = (node, violation) => [...node.html.matchAll(dataAttributeRegexp)].map(([fullMatch, dataKey, dataValue]) => ({
27
+ fullMatch,
28
+ dataKey,
29
+ dataValue
30
+ })).some(({ dataKey, dataValue }) => dataKey === `data-axe-ignore-${violation.id}` && dataValue === "true");
31
+ const reporter = (violToFormat) => {
32
+ if (violToFormat.length === 0)
33
+ return "";
34
+ const lineBreak = "\n\n";
35
+ const horizontalLine = "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500";
36
+ return violToFormat.map((violation) => {
37
+ const errorBody = violation.nodes.map((node) => {
38
+ const selector = node.target.join(", ");
39
+ const expectedText = `Expected the HTML found at $('${selector}') to have no violations:${lineBreak}`;
40
+ return `${expectedText + colorGrey(node.html) + lineBreak}Received:${lineBreak}${printReceived(`${violation.help} (${violation.id})`)}${lineBreak}${colorYellow(node.failureSummary)}${lineBreak}${violation.helpUrl ? `You can find more information on this issue here:
41
+ ${colorBlue(violation.helpUrl)}` : ""}`;
42
+ }).join(lineBreak);
43
+ return errorBody;
44
+ }).join(lineBreak + horizontalLine + lineBreak);
45
+ };
46
+ const getMessageAndPass = (violations) => {
47
+ const formatedViolations = reporter(violations);
48
+ const pass = formatedViolations.length === 0;
49
+ if (pass)
50
+ return { message: () => "", pass };
51
+ return { message: () => `${matcherHint(".toHaveNoViolations")}
52
+
53
+ ${formatedViolations}`, pass };
54
+ };
55
+ const toHaveNoViolations = {
56
+ toHaveNoViolations(results) {
57
+ const { violations } = results;
58
+ const finalViolations = [];
59
+ violations.forEach((violation) => {
60
+ const { nodes } = violation;
61
+ const newNodes = [];
62
+ nodes.forEach((node) => {
63
+ if (!shouldIgnoreNodeViolation(node, violation))
64
+ newNodes.push(node);
65
+ });
66
+ if (newNodes.length > 0) {
67
+ finalViolations.push(__spreadProps(__spreadValues({}, violation), { nodes: newNodes }));
68
+ }
69
+ });
70
+ return __spreadValues({ actual: violations }, getMessageAndPass(finalViolations));
71
+ }
72
+ };
73
+ export {
74
+ toHaveNoViolations
75
+ };
76
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { AxeResults, NodeResult, Result } from 'axe-core';\nimport { printReceived, matcherHint } from 'jest-matcher-utils';\n\nconst colorYellow = (arg?: string) => `\\x1b[93m ${arg || ''} \\x1b[0m`;\nconst colorGrey = (arg?: string) => `\\x1b[90m ${arg || ''} \\x1b[0m`;\nconst colorBlue = (arg?: string) => `\\x1b[34m ${arg || ''} \\x1b[0m`;\n\nconst dataAttributeRegexp = /(data-[\\S]*)=[\"']([\\S]*)[\"']/gm;\n\nconst shouldIgnoreNodeViolation = (node: NodeResult, violation: Result): boolean =>\n [...node.html.matchAll(dataAttributeRegexp)]\n .map(([fullMatch, dataKey, dataValue]) => ({\n fullMatch,\n dataKey,\n dataValue,\n }))\n .some(({ dataKey, dataValue }) => dataKey === `data-axe-ignore-${violation.id}` && dataValue === 'true');\n\n// relevant code from https://github.com/nickcolley/jest-axe/blob/main/index.js\nconst reporter = (violToFormat: Result[]) => {\n if (violToFormat.length === 0) return '';\n const lineBreak = '\\n\\n';\n const horizontalLine = '\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500';\n return violToFormat\n .map((violation) => {\n const errorBody = violation.nodes\n .map((node) => {\n const selector = node.target.join(', ');\n const expectedText = `Expected the HTML found at $('${selector}') to have no violations:${lineBreak}`;\n return `${expectedText + colorGrey(node.html) + lineBreak}Received:${lineBreak}${printReceived(\n `${violation.help} (${violation.id})`,\n )}${lineBreak}${colorYellow(node.failureSummary)}${lineBreak}${\n violation.helpUrl\n ? `You can find more information on this issue here: \\n${colorBlue(violation.helpUrl)}`\n : ''\n }`;\n })\n .join(lineBreak);\n\n return errorBody;\n })\n .join(lineBreak + horizontalLine + lineBreak);\n};\n\nconst getMessageAndPass = (violations: Result[]) => {\n const formatedViolations = reporter(violations);\n const pass = formatedViolations.length === 0;\n if (pass) return { message: () => '', pass };\n return { message: () => `${matcherHint('.toHaveNoViolations')}\\n\\n${formatedViolations}`, pass };\n};\n\nexport const toHaveNoViolations = {\n toHaveNoViolations(results: AxeResults) {\n const { violations } = results;\n const finalViolations: Result[] = [];\n violations.forEach((violation) => {\n const { nodes } = violation;\n const newNodes: NodeResult[] = [];\n nodes.forEach((node) => {\n if (!shouldIgnoreNodeViolation(node, violation)) newNodes.push(node);\n });\n if (newNodes.length > 0) {\n finalViolations.push({ ...violation, nodes: newNodes });\n }\n });\n\n return { actual: violations, ...getMessageAndPass(finalViolations) };\n },\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;ACCA;AAEA,MAAM,cAAc,CAAC,QAAiB,YAAY,OAAO;AACzD,MAAM,YAAY,CAAC,QAAiB,YAAY,OAAO;AACvD,MAAM,YAAY,CAAC,QAAiB,YAAY,OAAO;AAEvD,MAAM,sBAAsB;AAE5B,MAAM,4BAA4B,CAAC,MAAkB,cACnD,CAAC,GAAG,KAAK,KAAK,SAAS,mBAAmB,CAAC,EACxC,IAAI,CAAC,CAAC,WAAW,SAAS,eAAgB;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AACF,EAAE,EACD,KAAK,CAAC,EAAE,SAAS,gBAAgB,YAAY,mBAAmB,UAAU,QAAQ,cAAc,MAAM;AAG3G,MAAM,WAAW,CAAC,iBAA2B;AAC3C,MAAI,aAAa,WAAW;AAAG,WAAO;AACtC,QAAM,YAAY;AAClB,QAAM,iBAAiB;AACvB,SAAO,aACJ,IAAI,CAAC,cAAc;AAClB,UAAM,YAAY,UAAU,MACzB,IAAI,CAAC,SAAS;AACb,YAAM,WAAW,KAAK,OAAO,KAAK,IAAI;AACtC,YAAM,eAAe,iCAAiC,oCAAoC;AAC1F,aAAO,GAAG,eAAe,UAAU,KAAK,IAAI,IAAI,qBAAqB,YAAY,cAC/E,GAAG,UAAU,SAAS,UAAU,KAClC,IAAI,YAAY,YAAY,KAAK,cAAc,IAAI,YACjD,UAAU,UACN;AAAA,EAAuD,UAAU,UAAU,OAAO,MAClF;AAAA,IAER,CAAC,EACA,KAAK,SAAS;AAEjB,WAAO;AAAA,EACT,CAAC,EACA,KAAK,YAAY,iBAAiB,SAAS;AAChD;AAEA,MAAM,oBAAoB,CAAC,eAAyB;AAClD,QAAM,qBAAqB,SAAS,UAAU;AAC9C,QAAM,OAAO,mBAAmB,WAAW;AAC3C,MAAI;AAAM,WAAO,EAAE,SAAS,MAAM,IAAI,KAAK;AAC3C,SAAO,EAAE,SAAS,MAAM,GAAG,YAAY,qBAAqB;AAAA;AAAA,EAAQ,sBAAsB,KAAK;AACjG;AAEO,MAAM,qBAAqB;AAAA,EAChC,mBAAmB,SAAqB;AACtC,UAAM,EAAE,eAAe;AACvB,UAAM,kBAA4B,CAAC;AACnC,eAAW,QAAQ,CAAC,cAAc;AAChC,YAAM,EAAE,UAAU;AAClB,YAAM,WAAyB,CAAC;AAChC,YAAM,QAAQ,CAAC,SAAS;AACtB,YAAI,CAAC,0BAA0B,MAAM,SAAS;AAAG,mBAAS,KAAK,IAAI;AAAA,MACrE,CAAC;AACD,UAAI,SAAS,SAAS,GAAG;AACvB,wBAAgB,KAAK,iCAAK,YAAL,EAAgB,OAAO,SAAS,EAAC;AAAA,MACxD;AAAA,IACF,CAAC;AAED,WAAO,iBAAE,QAAQ,cAAe,kBAAkB,eAAe;AAAA,EACnE;AACF;",
6
+ "names": []
7
+ }
package/package.json ADDED
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "@elliemae/ds-test-utils",
3
+ "version": "3.1.0-next.21",
4
+ "license": "MIT",
5
+ "description": "ICE MT - Dimsum - Test utilities",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "module": "./dist/esm/index.js",
10
+ "main": "./dist/cjs/index.js",
11
+ "types": "./dist/types/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "import": "./dist/esm/index.js",
15
+ "require": "./dist/cjs/index.js"
16
+ }
17
+ },
18
+ "sideEffects": [
19
+ "*.css",
20
+ "*.scss"
21
+ ],
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://git.elliemae.io/platform-ui/dimsum.git"
25
+ },
26
+ "engines": {
27
+ "pnpm": ">=6",
28
+ "node": ">=16"
29
+ },
30
+ "author": "ICE MT",
31
+ "jestSonar": {
32
+ "sonar56x": true,
33
+ "reportPath": "reports",
34
+ "reportFile": "tests.xml",
35
+ "indent": 4
36
+ },
37
+ "dependencies": {
38
+ "axe-core": "4.4.2",
39
+ "chalk": "5.0.1",
40
+ "jest-matcher-utils": "28.1.0"
41
+ },
42
+ "devDependencies": {
43
+ "@testing-library/jest-dom": "~5.16.4",
44
+ "@testing-library/react": "~12.1.3",
45
+ "@testing-library/user-event": "~13.5.0",
46
+ "styled-components": "~5.3.5"
47
+ },
48
+ "peerDependencies": {
49
+ "react": "^17.0.2",
50
+ "react-dom": "^17.0.2",
51
+ "styled-components": "^5.3.5"
52
+ },
53
+ "publishConfig": {
54
+ "access": "public",
55
+ "typeSafety": false
56
+ },
57
+ "scripts": {
58
+ "dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
59
+ "test": "node ../../scripts/testing/test.mjs",
60
+ "lint": "node ../../scripts/lint.mjs",
61
+ "dts": "node ../../scripts/dts.mjs",
62
+ "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
63
+ "checkDeps": "npx -yes ../ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
64
+ }
65
+ }