@elliemae/ds-test-utils 3.13.1-rc.0 → 3.14.0-next.2

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.
Files changed (33) hide show
  1. package/dist/cjs/index.js +4 -55
  2. package/dist/cjs/index.js.map +2 -2
  3. package/dist/cjs/testeable-utils/DSVirtualList.js +57 -0
  4. package/dist/cjs/testeable-utils/DSVirtualList.js.map +7 -0
  5. package/dist/cjs/testeable-utils/axe-core/getMessageAndPass.js +42 -0
  6. package/dist/cjs/testeable-utils/axe-core/getMessageAndPass.js.map +7 -0
  7. package/dist/cjs/testeable-utils/axe-core/index.js +32 -0
  8. package/dist/cjs/testeable-utils/axe-core/index.js.map +7 -0
  9. package/dist/cjs/testeable-utils/axe-core/reporter.js +52 -0
  10. package/dist/cjs/testeable-utils/axe-core/reporter.js.map +7 -0
  11. package/dist/cjs/testeable-utils/axe-core/shouldIgnoreNodeViolation.js +37 -0
  12. package/dist/cjs/testeable-utils/axe-core/shouldIgnoreNodeViolation.js.map +7 -0
  13. package/dist/cjs/testeable-utils/axe-core/toHaveNoViolations.js +51 -0
  14. package/dist/cjs/testeable-utils/axe-core/toHaveNoViolations.js.map +7 -0
  15. package/dist/cjs/testeable-utils/index.js +35 -0
  16. package/dist/cjs/testeable-utils/index.js.map +7 -0
  17. package/dist/esm/index.js +4 -55
  18. package/dist/esm/index.js.map +2 -2
  19. package/dist/esm/testeable-utils/DSVirtualList.js +31 -0
  20. package/dist/esm/testeable-utils/DSVirtualList.js.map +7 -0
  21. package/dist/esm/testeable-utils/axe-core/getMessageAndPass.js +16 -0
  22. package/dist/esm/testeable-utils/axe-core/getMessageAndPass.js.map +7 -0
  23. package/dist/esm/testeable-utils/axe-core/index.js +6 -0
  24. package/dist/esm/testeable-utils/axe-core/index.js.map +7 -0
  25. package/dist/esm/testeable-utils/axe-core/reporter.js +26 -0
  26. package/dist/esm/testeable-utils/axe-core/reporter.js.map +7 -0
  27. package/dist/esm/testeable-utils/axe-core/shouldIgnoreNodeViolation.js +11 -0
  28. package/dist/esm/testeable-utils/axe-core/shouldIgnoreNodeViolation.js.map +7 -0
  29. package/dist/esm/testeable-utils/axe-core/toHaveNoViolations.js +25 -0
  30. package/dist/esm/testeable-utils/axe-core/toHaveNoViolations.js.map +7 -0
  31. package/dist/esm/testeable-utils/index.js +9 -0
  32. package/dist/esm/testeable-utils/index.js.map +7 -0
  33. package/package.json +2 -2
package/dist/cjs/index.js CHANGED
@@ -24,62 +24,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
25
  var src_exports = {};
26
26
  __export(src_exports, {
27
- toHaveNoViolations: () => toHaveNoViolations
27
+ makeDSVirtualListTesteable: () => import_testeable_utils.makeDSVirtualListTesteable,
28
+ toHaveNoViolations: () => import_testeable_utils.toHaveNoViolations,
29
+ undoDSVirtualListTesteable: () => import_testeable_utils.undoDSVirtualListTesteable
28
30
  });
29
31
  module.exports = __toCommonJS(src_exports);
30
32
  var React = __toESM(require("react"));
31
- var import_jest_matcher_utils = require("jest-matcher-utils");
32
- const colorYellow = (arg) => `\x1B[93m ${arg || ""} \x1B[0m`;
33
- const colorGrey = (arg) => `\x1B[90m ${arg || ""} \x1B[0m`;
34
- const colorBlue = (arg) => `\x1B[34m ${arg || ""} \x1B[0m`;
35
- const dataAttributeRegexp = /(data-[\S]*)=["']([\S]*)["']/gm;
36
- const shouldIgnoreNodeViolation = (node, violation) => [...node.html.matchAll(dataAttributeRegexp)].map(([fullMatch, dataKey, dataValue]) => ({
37
- fullMatch,
38
- dataKey,
39
- dataValue
40
- })).some(({ dataKey, dataValue }) => dataKey === `data-axe-ignore-${violation.id}` && dataValue === "true");
41
- const reporter = (violToFormat) => {
42
- if (violToFormat.length === 0)
43
- return "";
44
- const lineBreak = "\n\n";
45
- const horizontalLine = "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500";
46
- return violToFormat.map((violation) => {
47
- const errorBody = violation.nodes.map((node) => {
48
- const selector = node.target.join(", ");
49
- const expectedText = `Expected the HTML found at $('${selector}') to have no violations:${lineBreak}`;
50
- return `${expectedText + colorGrey(node.html) + lineBreak}Received:${lineBreak}${(0, import_jest_matcher_utils.printReceived)(
51
- `${violation.help} (${violation.id})`
52
- )}${lineBreak}${colorYellow(node.failureSummary)}${lineBreak}${violation.helpUrl ? `You can find more information on this issue here:
53
- ${colorBlue(violation.helpUrl)}` : ""}`;
54
- }).join(lineBreak);
55
- return errorBody;
56
- }).join(lineBreak + horizontalLine + lineBreak);
57
- };
58
- const getMessageAndPass = (violations) => {
59
- const formatedViolations = reporter(violations);
60
- const pass = formatedViolations.length === 0;
61
- if (pass)
62
- return { message: () => "", pass };
63
- return { message: () => `${(0, import_jest_matcher_utils.matcherHint)(".toHaveNoViolations")}
64
-
65
- ${formatedViolations}`, pass };
66
- };
67
- const toHaveNoViolations = {
68
- toHaveNoViolations(results) {
69
- const { violations } = results;
70
- const finalViolations = [];
71
- violations.forEach((violation) => {
72
- const { nodes } = violation;
73
- const newNodes = [];
74
- nodes.forEach((node) => {
75
- if (!shouldIgnoreNodeViolation(node, violation))
76
- newNodes.push(node);
77
- });
78
- if (newNodes.length > 0) {
79
- finalViolations.push({ ...violation, nodes: newNodes });
80
- }
81
- });
82
- return { actual: violations, ...getMessageAndPass(finalViolations) };
83
- }
84
- };
33
+ var import_testeable_utils = require("./testeable-utils");
85
34
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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,SAAS,OAAO;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AACF,EAAE,EACD,KAAK,CAAC,EAAE,SAAS,UAAU,MAAM,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,gBAAY;AAAA,QAC/E,GAAG,UAAU,SAAS,UAAU;AAAA,MAClC,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,OAAG,uCAAY,qBAAqB;AAAA;AAAA,EAAQ,sBAAsB,KAAK;AACjG;AAEO,MAAM,qBAAqB;AAAA,EAChC,mBAAmB,SAAqB;AACtC,UAAM,EAAE,WAAW,IAAI;AACvB,UAAM,kBAA4B,CAAC;AACnC,eAAW,QAAQ,CAAC,cAAc;AAChC,YAAM,EAAE,MAAM,IAAI;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,EAAE,GAAG,WAAW,OAAO,SAAS,CAAC;AAAA,MACxD;AAAA,IACF,CAAC;AAED,WAAO,EAAE,QAAQ,YAAY,GAAG,kBAAkB,eAAe,EAAE;AAAA,EACrE;AACF;",
4
+ "sourcesContent": ["export { toHaveNoViolations, makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './testeable-utils';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,6BAA2F;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var DSVirtualList_exports = {};
26
+ __export(DSVirtualList_exports, {
27
+ makeDSVirtualListTesteable: () => makeDSVirtualListTesteable,
28
+ undoDSVirtualListTesteable: () => undoDSVirtualListTesteable
29
+ });
30
+ module.exports = __toCommonJS(DSVirtualList_exports);
31
+ var React = __toESM(require("react"));
32
+ var virtualLib = __toESM(require("@tanstack/react-virtual"));
33
+ const mutableScope = { original: virtualLib.useVirtualizer };
34
+ const makeDSVirtualListTesteable = async ({
35
+ overscan,
36
+ itemHeight,
37
+ parentHeight,
38
+ width = 400
39
+ }) => {
40
+ const lib = await import("@tanstack/react-virtual");
41
+ lib.useVirtualizer = jest.fn(
42
+ (virtualOpts) => mutableScope.original({
43
+ ...virtualOpts,
44
+ overscan,
45
+ initialRect: { height: parentHeight, width },
46
+ observeElementRect: (_, cb) => {
47
+ cb({ height: parentHeight, width });
48
+ },
49
+ measureElement: () => itemHeight
50
+ })
51
+ );
52
+ };
53
+ const undoDSVirtualListTesteable = async () => {
54
+ const lib = await import("@tanstack/react-virtual");
55
+ lib.useVirtualizer = mutableScope.original;
56
+ };
57
+ //# sourceMappingURL=DSVirtualList.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/testeable-utils/DSVirtualList.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/* eslint-disable @typescript-eslint/no-unsafe-assignment */\n/* eslint-disable @typescript-eslint/no-var-requires */\n/* eslint-disable import/namespace */\n/* eslint-disable @typescript-eslint/ban-ts-comment */\n// @ts-nocheck\nimport * as virtualLib from '@tanstack/react-virtual';\n// this mutableScope thing may be over-kill\n// better safe than sorry?\nconst mutableScope = { original: virtualLib.useVirtualizer };\n\ntype MakeTesteableParams = {\n overscan: number;\n itemHeight: number;\n parentHeight: number;\n width?: number;\n};\n\nexport const makeDSVirtualListTesteable = async ({\n overscan,\n itemHeight,\n parentHeight,\n width = 400,\n}: MakeTesteableParams): void => {\n // await import is used to avoid \"read-only\" imports at global level\n // which would prevent run-time monekey-patching\n const lib = await import('@tanstack/react-virtual');\n lib.useVirtualizer = jest.fn((virtualOpts: Parameters<virtualLib.originalUseVirtualizer>) =>\n mutableScope.original({\n ...virtualOpts,\n overscan,\n initialRect: { height: parentHeight, width },\n observeElementRect: (_, cb) => {\n cb({ height: parentHeight, width });\n },\n measureElement: () => itemHeight,\n }),\n );\n};\n\nexport const undoDSVirtualListTesteable = async () => {\n // await import is used to avoid \"read-only\" imports at global level\n // which would prevent run-time monekey-patching\n const lib = await import('@tanstack/react-virtual');\n lib.useVirtualizer = mutableScope.original;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADMvB,iBAA4B;AAG5B,MAAM,eAAe,EAAE,UAAU,WAAW,eAAe;AASpD,MAAM,6BAA6B,OAAO;AAAA,EAC/C;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AACV,MAAiC;AAG/B,QAAM,MAAM,MAAM,OAAO;AACzB,MAAI,iBAAiB,KAAK;AAAA,IAAG,CAAC,gBAC5B,aAAa,SAAS;AAAA,MACpB,GAAG;AAAA,MACH;AAAA,MACA,aAAa,EAAE,QAAQ,cAAc,MAAM;AAAA,MAC3C,oBAAoB,CAAC,GAAG,OAAO;AAC7B,WAAG,EAAE,QAAQ,cAAc,MAAM,CAAC;AAAA,MACpC;AAAA,MACA,gBAAgB,MAAM;AAAA,IACxB,CAAC;AAAA,EACH;AACF;AAEO,MAAM,6BAA6B,YAAY;AAGpD,QAAM,MAAM,MAAM,OAAO;AACzB,MAAI,iBAAiB,aAAa;AACpC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var getMessageAndPass_exports = {};
26
+ __export(getMessageAndPass_exports, {
27
+ getMessageAndPass: () => getMessageAndPass
28
+ });
29
+ module.exports = __toCommonJS(getMessageAndPass_exports);
30
+ var React = __toESM(require("react"));
31
+ var import_jest_matcher_utils = require("jest-matcher-utils");
32
+ var import_reporter = require("./reporter");
33
+ const getMessageAndPass = (violations) => {
34
+ const formatedViolations = (0, import_reporter.reporter)(violations);
35
+ const pass = formatedViolations.length === 0;
36
+ if (pass)
37
+ return { message: () => "", pass };
38
+ return { message: () => `${(0, import_jest_matcher_utils.matcherHint)(".toHaveNoViolations")}
39
+
40
+ ${formatedViolations}`, pass };
41
+ };
42
+ //# sourceMappingURL=getMessageAndPass.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/testeable-utils/axe-core/getMessageAndPass.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import type { Result } from 'axe-core';\nimport { matcherHint } from 'jest-matcher-utils';\nimport { reporter } from './reporter';\n\nexport const 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", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,gCAA4B;AAC5B,sBAAyB;AAElB,MAAM,oBAAoB,CAAC,eAAyB;AACzD,QAAM,yBAAqB,0BAAS,UAAU;AAC9C,QAAM,OAAO,mBAAmB,WAAW;AAC3C,MAAI;AAAM,WAAO,EAAE,SAAS,MAAM,IAAI,KAAK;AAC3C,SAAO,EAAE,SAAS,MAAM,OAAG,uCAAY,qBAAqB;AAAA;AAAA,EAAQ,sBAAsB,KAAK;AACjG;",
6
+ "names": []
7
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var axe_core_exports = {};
26
+ __export(axe_core_exports, {
27
+ toHaveNoViolations: () => import_toHaveNoViolations.toHaveNoViolations
28
+ });
29
+ module.exports = __toCommonJS(axe_core_exports);
30
+ var React = __toESM(require("react"));
31
+ var import_toHaveNoViolations = require("./toHaveNoViolations");
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/testeable-utils/axe-core/index.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["export { toHaveNoViolations } from './toHaveNoViolations';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,gCAAmC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var reporter_exports = {};
26
+ __export(reporter_exports, {
27
+ reporter: () => reporter
28
+ });
29
+ module.exports = __toCommonJS(reporter_exports);
30
+ var React = __toESM(require("react"));
31
+ var import_jest_matcher_utils = require("jest-matcher-utils");
32
+ const colorYellow = (arg) => `\x1B[93m ${arg || ""} \x1B[0m`;
33
+ const colorGrey = (arg) => `\x1B[90m ${arg || ""} \x1B[0m`;
34
+ const colorBlue = (arg) => `\x1B[34m ${arg || ""} \x1B[0m`;
35
+ const reporter = (violToFormat) => {
36
+ if (violToFormat.length === 0)
37
+ return "";
38
+ const lineBreak = "\n\n";
39
+ const horizontalLine = "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500";
40
+ return violToFormat.map((violation) => {
41
+ const errorBody = violation.nodes.map((node) => {
42
+ const selector = node.target.join(", ");
43
+ const expectedText = `Expected the HTML found at $('${selector}') to have no violations:${lineBreak}`;
44
+ return `${expectedText + colorGrey(node.html) + lineBreak}Received:${lineBreak}${(0, import_jest_matcher_utils.printReceived)(
45
+ `${violation.help} (${violation.id})`
46
+ )}${lineBreak}${colorYellow(node.failureSummary)}${lineBreak}${violation.helpUrl ? `You can find more information on this issue here:
47
+ ${colorBlue(violation.helpUrl)}` : ""}`;
48
+ }).join(lineBreak);
49
+ return errorBody;
50
+ }).join(lineBreak + horizontalLine + lineBreak);
51
+ };
52
+ //# sourceMappingURL=reporter.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/testeable-utils/axe-core/reporter.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import type { Result } from 'axe-core';\nimport { printReceived } 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\n// relevant code from https://github.com/nickcolley/jest-axe/blob/main/index.js\nexport const 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", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,gCAA8B;AAE9B,MAAM,cAAc,CAAC,QAAiB,YAAY,OAAO;AACzD,MAAM,YAAY,CAAC,QAAiB,YAAY,OAAO;AACvD,MAAM,YAAY,CAAC,QAAiB,YAAY,OAAO;AAGhD,MAAM,WAAW,CAAC,iBAA2B;AAClD,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,gBAAY;AAAA,QAC/E,GAAG,UAAU,SAAS,UAAU;AAAA,MAClC,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;",
6
+ "names": []
7
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var shouldIgnoreNodeViolation_exports = {};
26
+ __export(shouldIgnoreNodeViolation_exports, {
27
+ shouldIgnoreNodeViolation: () => shouldIgnoreNodeViolation
28
+ });
29
+ module.exports = __toCommonJS(shouldIgnoreNodeViolation_exports);
30
+ var React = __toESM(require("react"));
31
+ const dataAttributeRegexp = /(data-[\S]*)=["']([\S]*)["']/gm;
32
+ const shouldIgnoreNodeViolation = (node, violation) => [...node.html.matchAll(dataAttributeRegexp)].map(([fullMatch, dataKey, dataValue]) => ({
33
+ fullMatch,
34
+ dataKey,
35
+ dataValue
36
+ })).some(({ dataKey, dataValue }) => dataKey === `data-axe-ignore-${violation.id}` && dataValue === "true");
37
+ //# sourceMappingURL=shouldIgnoreNodeViolation.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/testeable-utils/axe-core/shouldIgnoreNodeViolation.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import type { NodeResult, Result } from 'axe-core';\nconst dataAttributeRegexp = /(data-[\\S]*)=[\"']([\\S]*)[\"']/gm;\n\nexport const 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", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,MAAM,sBAAsB;AAErB,MAAM,4BAA4B,CAAC,MAAkB,cAC1D,CAAC,GAAG,KAAK,KAAK,SAAS,mBAAmB,CAAC,EACxC,IAAI,CAAC,CAAC,WAAW,SAAS,SAAS,OAAO;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AACF,EAAE,EACD,KAAK,CAAC,EAAE,SAAS,UAAU,MAAM,YAAY,mBAAmB,UAAU,QAAQ,cAAc,MAAM;",
6
+ "names": []
7
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var toHaveNoViolations_exports = {};
26
+ __export(toHaveNoViolations_exports, {
27
+ toHaveNoViolations: () => toHaveNoViolations
28
+ });
29
+ module.exports = __toCommonJS(toHaveNoViolations_exports);
30
+ var React = __toESM(require("react"));
31
+ var import_getMessageAndPass = require("./getMessageAndPass");
32
+ var import_shouldIgnoreNodeViolation = require("./shouldIgnoreNodeViolation");
33
+ const toHaveNoViolations = {
34
+ toHaveNoViolations(results) {
35
+ const { violations } = results;
36
+ const finalViolations = [];
37
+ violations.forEach((violation) => {
38
+ const { nodes } = violation;
39
+ const newNodes = [];
40
+ nodes.forEach((node) => {
41
+ if (!(0, import_shouldIgnoreNodeViolation.shouldIgnoreNodeViolation)(node, violation))
42
+ newNodes.push(node);
43
+ });
44
+ if (newNodes.length > 0) {
45
+ finalViolations.push({ ...violation, nodes: newNodes });
46
+ }
47
+ });
48
+ return { actual: violations, ...(0, import_getMessageAndPass.getMessageAndPass)(finalViolations) };
49
+ }
50
+ };
51
+ //# sourceMappingURL=toHaveNoViolations.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/testeable-utils/axe-core/toHaveNoViolations.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import type { AxeResults, NodeResult, Result } from 'axe-core';\nimport { getMessageAndPass } from './getMessageAndPass';\nimport { shouldIgnoreNodeViolation } from './shouldIgnoreNodeViolation';\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,+BAAkC;AAClC,uCAA0C;AAEnC,MAAM,qBAAqB;AAAA,EAChC,mBAAmB,SAAqB;AACtC,UAAM,EAAE,WAAW,IAAI;AACvB,UAAM,kBAA4B,CAAC;AACnC,eAAW,QAAQ,CAAC,cAAc;AAChC,YAAM,EAAE,MAAM,IAAI;AAClB,YAAM,WAAyB,CAAC;AAChC,YAAM,QAAQ,CAAC,SAAS;AACtB,YAAI,KAAC,4DAA0B,MAAM,SAAS;AAAG,mBAAS,KAAK,IAAI;AAAA,MACrE,CAAC;AACD,UAAI,SAAS,SAAS,GAAG;AACvB,wBAAgB,KAAK,EAAE,GAAG,WAAW,OAAO,SAAS,CAAC;AAAA,MACxD;AAAA,IACF,CAAC;AAED,WAAO,EAAE,QAAQ,YAAY,OAAG,4CAAkB,eAAe,EAAE;AAAA,EACrE;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var testeable_utils_exports = {};
26
+ __export(testeable_utils_exports, {
27
+ makeDSVirtualListTesteable: () => import_DSVirtualList.makeDSVirtualListTesteable,
28
+ toHaveNoViolations: () => import_axe_core.toHaveNoViolations,
29
+ undoDSVirtualListTesteable: () => import_DSVirtualList.undoDSVirtualListTesteable
30
+ });
31
+ module.exports = __toCommonJS(testeable_utils_exports);
32
+ var React = __toESM(require("react"));
33
+ var import_axe_core = require("./axe-core");
34
+ var import_DSVirtualList = require("./DSVirtualList");
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/testeable-utils/index.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["export { toHaveNoViolations } from './axe-core';\nexport { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './DSVirtualList';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,sBAAmC;AACnC,2BAAuE;",
6
+ "names": []
7
+ }
package/dist/esm/index.js CHANGED
@@ -1,59 +1,8 @@
1
1
  import * as React from "react";
2
- import { printReceived, matcherHint } from "jest-matcher-utils";
3
- const colorYellow = (arg) => `\x1B[93m ${arg || ""} \x1B[0m`;
4
- const colorGrey = (arg) => `\x1B[90m ${arg || ""} \x1B[0m`;
5
- const colorBlue = (arg) => `\x1B[34m ${arg || ""} \x1B[0m`;
6
- const dataAttributeRegexp = /(data-[\S]*)=["']([\S]*)["']/gm;
7
- const shouldIgnoreNodeViolation = (node, violation) => [...node.html.matchAll(dataAttributeRegexp)].map(([fullMatch, dataKey, dataValue]) => ({
8
- fullMatch,
9
- dataKey,
10
- dataValue
11
- })).some(({ dataKey, dataValue }) => dataKey === `data-axe-ignore-${violation.id}` && dataValue === "true");
12
- const reporter = (violToFormat) => {
13
- if (violToFormat.length === 0)
14
- return "";
15
- const lineBreak = "\n\n";
16
- const horizontalLine = "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500";
17
- return violToFormat.map((violation) => {
18
- const errorBody = violation.nodes.map((node) => {
19
- const selector = node.target.join(", ");
20
- const expectedText = `Expected the HTML found at $('${selector}') to have no violations:${lineBreak}`;
21
- return `${expectedText + colorGrey(node.html) + lineBreak}Received:${lineBreak}${printReceived(
22
- `${violation.help} (${violation.id})`
23
- )}${lineBreak}${colorYellow(node.failureSummary)}${lineBreak}${violation.helpUrl ? `You can find more information on this issue here:
24
- ${colorBlue(violation.helpUrl)}` : ""}`;
25
- }).join(lineBreak);
26
- return errorBody;
27
- }).join(lineBreak + horizontalLine + lineBreak);
28
- };
29
- const getMessageAndPass = (violations) => {
30
- const formatedViolations = reporter(violations);
31
- const pass = formatedViolations.length === 0;
32
- if (pass)
33
- return { message: () => "", pass };
34
- return { message: () => `${matcherHint(".toHaveNoViolations")}
35
-
36
- ${formatedViolations}`, pass };
37
- };
38
- const toHaveNoViolations = {
39
- toHaveNoViolations(results) {
40
- const { violations } = results;
41
- const finalViolations = [];
42
- violations.forEach((violation) => {
43
- const { nodes } = violation;
44
- const newNodes = [];
45
- nodes.forEach((node) => {
46
- if (!shouldIgnoreNodeViolation(node, violation))
47
- newNodes.push(node);
48
- });
49
- if (newNodes.length > 0) {
50
- finalViolations.push({ ...violation, nodes: newNodes });
51
- }
52
- });
53
- return { actual: violations, ...getMessageAndPass(finalViolations) };
54
- }
55
- };
2
+ import { toHaveNoViolations, makeDSVirtualListTesteable, undoDSVirtualListTesteable } from "./testeable-utils";
56
3
  export {
57
- toHaveNoViolations
4
+ makeDSVirtualListTesteable,
5
+ toHaveNoViolations,
6
+ undoDSVirtualListTesteable
58
7
  };
59
8
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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,YAAY,WAAW;ACCvB,SAAS,eAAe,mBAAmB;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,SAAS,OAAO;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AACF,EAAE,EACD,KAAK,CAAC,EAAE,SAAS,UAAU,MAAM,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;AAAA,QAC/E,GAAG,UAAU,SAAS,UAAU;AAAA,MAClC,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,WAAW,IAAI;AACvB,UAAM,kBAA4B,CAAC;AACnC,eAAW,QAAQ,CAAC,cAAc;AAChC,YAAM,EAAE,MAAM,IAAI;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,EAAE,GAAG,WAAW,OAAO,SAAS,CAAC;AAAA,MACxD;AAAA,IACF,CAAC;AAED,WAAO,EAAE,QAAQ,YAAY,GAAG,kBAAkB,eAAe,EAAE;AAAA,EACrE;AACF;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { toHaveNoViolations, makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './testeable-utils';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,oBAAoB,4BAA4B,kCAAkC;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,31 @@
1
+ import * as React from "react";
2
+ import * as virtualLib from "@tanstack/react-virtual";
3
+ const mutableScope = { original: virtualLib.useVirtualizer };
4
+ const makeDSVirtualListTesteable = async ({
5
+ overscan,
6
+ itemHeight,
7
+ parentHeight,
8
+ width = 400
9
+ }) => {
10
+ const lib = await import("@tanstack/react-virtual");
11
+ lib.useVirtualizer = jest.fn(
12
+ (virtualOpts) => mutableScope.original({
13
+ ...virtualOpts,
14
+ overscan,
15
+ initialRect: { height: parentHeight, width },
16
+ observeElementRect: (_, cb) => {
17
+ cb({ height: parentHeight, width });
18
+ },
19
+ measureElement: () => itemHeight
20
+ })
21
+ );
22
+ };
23
+ const undoDSVirtualListTesteable = async () => {
24
+ const lib = await import("@tanstack/react-virtual");
25
+ lib.useVirtualizer = mutableScope.original;
26
+ };
27
+ export {
28
+ makeDSVirtualListTesteable,
29
+ undoDSVirtualListTesteable
30
+ };
31
+ //# sourceMappingURL=DSVirtualList.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/testeable-utils/DSVirtualList.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/* eslint-disable @typescript-eslint/no-unsafe-assignment */\n/* eslint-disable @typescript-eslint/no-var-requires */\n/* eslint-disable import/namespace */\n/* eslint-disable @typescript-eslint/ban-ts-comment */\n// @ts-nocheck\nimport * as virtualLib from '@tanstack/react-virtual';\n// this mutableScope thing may be over-kill\n// better safe than sorry?\nconst mutableScope = { original: virtualLib.useVirtualizer };\n\ntype MakeTesteableParams = {\n overscan: number;\n itemHeight: number;\n parentHeight: number;\n width?: number;\n};\n\nexport const makeDSVirtualListTesteable = async ({\n overscan,\n itemHeight,\n parentHeight,\n width = 400,\n}: MakeTesteableParams): void => {\n // await import is used to avoid \"read-only\" imports at global level\n // which would prevent run-time monekey-patching\n const lib = await import('@tanstack/react-virtual');\n lib.useVirtualizer = jest.fn((virtualOpts: Parameters<virtualLib.originalUseVirtualizer>) =>\n mutableScope.original({\n ...virtualOpts,\n overscan,\n initialRect: { height: parentHeight, width },\n observeElementRect: (_, cb) => {\n cb({ height: parentHeight, width });\n },\n measureElement: () => itemHeight,\n }),\n );\n};\n\nexport const undoDSVirtualListTesteable = async () => {\n // await import is used to avoid \"read-only\" imports at global level\n // which would prevent run-time monekey-patching\n const lib = await import('@tanstack/react-virtual');\n lib.useVirtualizer = mutableScope.original;\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACMvB,YAAY,gBAAgB;AAG5B,MAAM,eAAe,EAAE,UAAU,WAAW,eAAe;AASpD,MAAM,6BAA6B,OAAO;AAAA,EAC/C;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AACV,MAAiC;AAG/B,QAAM,MAAM,MAAM,OAAO;AACzB,MAAI,iBAAiB,KAAK;AAAA,IAAG,CAAC,gBAC5B,aAAa,SAAS;AAAA,MACpB,GAAG;AAAA,MACH;AAAA,MACA,aAAa,EAAE,QAAQ,cAAc,MAAM;AAAA,MAC3C,oBAAoB,CAAC,GAAG,OAAO;AAC7B,WAAG,EAAE,QAAQ,cAAc,MAAM,CAAC;AAAA,MACpC;AAAA,MACA,gBAAgB,MAAM;AAAA,IACxB,CAAC;AAAA,EACH;AACF;AAEO,MAAM,6BAA6B,YAAY;AAGpD,QAAM,MAAM,MAAM,OAAO;AACzB,MAAI,iBAAiB,aAAa;AACpC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ import { matcherHint } from "jest-matcher-utils";
3
+ import { reporter } from "./reporter";
4
+ const getMessageAndPass = (violations) => {
5
+ const formatedViolations = reporter(violations);
6
+ const pass = formatedViolations.length === 0;
7
+ if (pass)
8
+ return { message: () => "", pass };
9
+ return { message: () => `${matcherHint(".toHaveNoViolations")}
10
+
11
+ ${formatedViolations}`, pass };
12
+ };
13
+ export {
14
+ getMessageAndPass
15
+ };
16
+ //# sourceMappingURL=getMessageAndPass.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/testeable-utils/axe-core/getMessageAndPass.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { Result } from 'axe-core';\nimport { matcherHint } from 'jest-matcher-utils';\nimport { reporter } from './reporter';\n\nexport const 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"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,mBAAmB;AAC5B,SAAS,gBAAgB;AAElB,MAAM,oBAAoB,CAAC,eAAyB;AACzD,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;",
6
+ "names": []
7
+ }
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ import { toHaveNoViolations } from "./toHaveNoViolations";
3
+ export {
4
+ toHaveNoViolations
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/testeable-utils/axe-core/index.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { toHaveNoViolations } from './toHaveNoViolations';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,0BAA0B;",
6
+ "names": []
7
+ }
@@ -0,0 +1,26 @@
1
+ import * as React from "react";
2
+ import { printReceived } from "jest-matcher-utils";
3
+ const colorYellow = (arg) => `\x1B[93m ${arg || ""} \x1B[0m`;
4
+ const colorGrey = (arg) => `\x1B[90m ${arg || ""} \x1B[0m`;
5
+ const colorBlue = (arg) => `\x1B[34m ${arg || ""} \x1B[0m`;
6
+ const reporter = (violToFormat) => {
7
+ if (violToFormat.length === 0)
8
+ return "";
9
+ const lineBreak = "\n\n";
10
+ const horizontalLine = "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500";
11
+ return violToFormat.map((violation) => {
12
+ const errorBody = violation.nodes.map((node) => {
13
+ const selector = node.target.join(", ");
14
+ const expectedText = `Expected the HTML found at $('${selector}') to have no violations:${lineBreak}`;
15
+ return `${expectedText + colorGrey(node.html) + lineBreak}Received:${lineBreak}${printReceived(
16
+ `${violation.help} (${violation.id})`
17
+ )}${lineBreak}${colorYellow(node.failureSummary)}${lineBreak}${violation.helpUrl ? `You can find more information on this issue here:
18
+ ${colorBlue(violation.helpUrl)}` : ""}`;
19
+ }).join(lineBreak);
20
+ return errorBody;
21
+ }).join(lineBreak + horizontalLine + lineBreak);
22
+ };
23
+ export {
24
+ reporter
25
+ };
26
+ //# sourceMappingURL=reporter.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/testeable-utils/axe-core/reporter.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { Result } from 'axe-core';\nimport { printReceived } 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\n// relevant code from https://github.com/nickcolley/jest-axe/blob/main/index.js\nexport const 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"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,qBAAqB;AAE9B,MAAM,cAAc,CAAC,QAAiB,YAAY,OAAO;AACzD,MAAM,YAAY,CAAC,QAAiB,YAAY,OAAO;AACvD,MAAM,YAAY,CAAC,QAAiB,YAAY,OAAO;AAGhD,MAAM,WAAW,CAAC,iBAA2B;AAClD,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;AAAA,QAC/E,GAAG,UAAU,SAAS,UAAU;AAAA,MAClC,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;",
6
+ "names": []
7
+ }
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ const dataAttributeRegexp = /(data-[\S]*)=["']([\S]*)["']/gm;
3
+ const shouldIgnoreNodeViolation = (node, violation) => [...node.html.matchAll(dataAttributeRegexp)].map(([fullMatch, dataKey, dataValue]) => ({
4
+ fullMatch,
5
+ dataKey,
6
+ dataValue
7
+ })).some(({ dataKey, dataValue }) => dataKey === `data-axe-ignore-${violation.id}` && dataValue === "true");
8
+ export {
9
+ shouldIgnoreNodeViolation
10
+ };
11
+ //# sourceMappingURL=shouldIgnoreNodeViolation.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/testeable-utils/axe-core/shouldIgnoreNodeViolation.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { NodeResult, Result } from 'axe-core';\nconst dataAttributeRegexp = /(data-[\\S]*)=[\"']([\\S]*)[\"']/gm;\n\nexport const 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"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACCvB,MAAM,sBAAsB;AAErB,MAAM,4BAA4B,CAAC,MAAkB,cAC1D,CAAC,GAAG,KAAK,KAAK,SAAS,mBAAmB,CAAC,EACxC,IAAI,CAAC,CAAC,WAAW,SAAS,SAAS,OAAO;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AACF,EAAE,EACD,KAAK,CAAC,EAAE,SAAS,UAAU,MAAM,YAAY,mBAAmB,UAAU,QAAQ,cAAc,MAAM;",
6
+ "names": []
7
+ }
@@ -0,0 +1,25 @@
1
+ import * as React from "react";
2
+ import { getMessageAndPass } from "./getMessageAndPass";
3
+ import { shouldIgnoreNodeViolation } from "./shouldIgnoreNodeViolation";
4
+ const toHaveNoViolations = {
5
+ toHaveNoViolations(results) {
6
+ const { violations } = results;
7
+ const finalViolations = [];
8
+ violations.forEach((violation) => {
9
+ const { nodes } = violation;
10
+ const newNodes = [];
11
+ nodes.forEach((node) => {
12
+ if (!shouldIgnoreNodeViolation(node, violation))
13
+ newNodes.push(node);
14
+ });
15
+ if (newNodes.length > 0) {
16
+ finalViolations.push({ ...violation, nodes: newNodes });
17
+ }
18
+ });
19
+ return { actual: violations, ...getMessageAndPass(finalViolations) };
20
+ }
21
+ };
22
+ export {
23
+ toHaveNoViolations
24
+ };
25
+ //# sourceMappingURL=toHaveNoViolations.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/testeable-utils/axe-core/toHaveNoViolations.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { AxeResults, NodeResult, Result } from 'axe-core';\nimport { getMessageAndPass } from './getMessageAndPass';\nimport { shouldIgnoreNodeViolation } from './shouldIgnoreNodeViolation';\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,YAAY,WAAW;ACCvB,SAAS,yBAAyB;AAClC,SAAS,iCAAiC;AAEnC,MAAM,qBAAqB;AAAA,EAChC,mBAAmB,SAAqB;AACtC,UAAM,EAAE,WAAW,IAAI;AACvB,UAAM,kBAA4B,CAAC;AACnC,eAAW,QAAQ,CAAC,cAAc;AAChC,YAAM,EAAE,MAAM,IAAI;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,EAAE,GAAG,WAAW,OAAO,SAAS,CAAC;AAAA,MACxD;AAAA,IACF,CAAC;AAED,WAAO,EAAE,QAAQ,YAAY,GAAG,kBAAkB,eAAe,EAAE;AAAA,EACrE;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ import { toHaveNoViolations } from "./axe-core";
3
+ import { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from "./DSVirtualList";
4
+ export {
5
+ makeDSVirtualListTesteable,
6
+ toHaveNoViolations,
7
+ undoDSVirtualListTesteable
8
+ };
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/testeable-utils/index.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { toHaveNoViolations } from './axe-core';\nexport { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './DSVirtualList';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,0BAA0B;AACnC,SAAS,4BAA4B,kCAAkC;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-test-utils",
3
- "version": "3.13.1-rc.0",
3
+ "version": "3.14.0-next.2",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Test utilities",
6
6
  "files": [
@@ -38,7 +38,7 @@
38
38
  "axe-core": "4.5.1",
39
39
  "jest-axe": "7.0.0",
40
40
  "jest-matcher-utils": "29.2.2",
41
- "@elliemae/ds-system": "3.13.1-rc.0"
41
+ "@elliemae/ds-system": "3.14.0-next.2"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@testing-library/dom": "~8.19.0",