@elliemae/ds-test-utils 3.22.0-next.1 → 3.22.0-next.16

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 (36) hide show
  1. package/dist/cjs/index.js +0 -1
  2. package/dist/cjs/index.js.map +2 -2
  3. package/dist/cjs/testeable-utils/index.js +0 -2
  4. package/dist/cjs/testeable-utils/index.js.map +2 -2
  5. package/dist/esm/index.js +1 -2
  6. package/dist/esm/index.js.map +2 -2
  7. package/dist/esm/testeable-utils/index.js +0 -2
  8. package/dist/esm/testeable-utils/index.js.map +2 -2
  9. package/dist/types/index.d.ts +1 -1
  10. package/dist/types/testeable-utils/index.d.ts +0 -1
  11. package/package.json +7 -4
  12. package/dist/cjs/testeable-utils/axe-core/getMessageAndPass.js +0 -46
  13. package/dist/cjs/testeable-utils/axe-core/getMessageAndPass.js.map +0 -7
  14. package/dist/cjs/testeable-utils/axe-core/index.js +0 -36
  15. package/dist/cjs/testeable-utils/axe-core/index.js.map +0 -7
  16. package/dist/cjs/testeable-utils/axe-core/reporter.js +0 -56
  17. package/dist/cjs/testeable-utils/axe-core/reporter.js.map +0 -7
  18. package/dist/cjs/testeable-utils/axe-core/shouldIgnoreNodeViolation.js +0 -41
  19. package/dist/cjs/testeable-utils/axe-core/shouldIgnoreNodeViolation.js.map +0 -7
  20. package/dist/cjs/testeable-utils/axe-core/toHaveNoViolations.js +0 -55
  21. package/dist/cjs/testeable-utils/axe-core/toHaveNoViolations.js.map +0 -7
  22. package/dist/esm/testeable-utils/axe-core/getMessageAndPass.js +0 -16
  23. package/dist/esm/testeable-utils/axe-core/getMessageAndPass.js.map +0 -7
  24. package/dist/esm/testeable-utils/axe-core/index.js +0 -6
  25. package/dist/esm/testeable-utils/axe-core/index.js.map +0 -7
  26. package/dist/esm/testeable-utils/axe-core/reporter.js +0 -26
  27. package/dist/esm/testeable-utils/axe-core/reporter.js.map +0 -7
  28. package/dist/esm/testeable-utils/axe-core/shouldIgnoreNodeViolation.js +0 -11
  29. package/dist/esm/testeable-utils/axe-core/shouldIgnoreNodeViolation.js.map +0 -7
  30. package/dist/esm/testeable-utils/axe-core/toHaveNoViolations.js +0 -25
  31. package/dist/esm/testeable-utils/axe-core/toHaveNoViolations.js.map +0 -7
  32. package/dist/types/testeable-utils/axe-core/getMessageAndPass.d.ts +0 -8
  33. package/dist/types/testeable-utils/axe-core/index.d.ts +0 -1
  34. package/dist/types/testeable-utils/axe-core/reporter.d.ts +0 -2
  35. package/dist/types/testeable-utils/axe-core/shouldIgnoreNodeViolation.d.ts +0 -2
  36. package/dist/types/testeable-utils/axe-core/toHaveNoViolations.d.ts +0 -12
package/dist/cjs/index.js CHANGED
@@ -29,7 +29,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  var src_exports = {};
30
30
  __export(src_exports, {
31
31
  makeDSVirtualListTesteable: () => import_testeable_utils.makeDSVirtualListTesteable,
32
- toHaveNoViolations: () => import_testeable_utils.toHaveNoViolations,
33
32
  undoDSVirtualListTesteable: () => import_testeable_utils.undoDSVirtualListTesteable
34
33
  });
35
34
  module.exports = __toCommonJS(src_exports);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["export { toHaveNoViolations, makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './testeable-utils/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,6BAA2F;",
4
+ "sourcesContent": ["export { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './testeable-utils/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,6BAAuE;",
6
6
  "names": []
7
7
  }
@@ -29,11 +29,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  var testeable_utils_exports = {};
30
30
  __export(testeable_utils_exports, {
31
31
  makeDSVirtualListTesteable: () => import_DSVirtualList.makeDSVirtualListTesteable,
32
- toHaveNoViolations: () => import_axe_core.toHaveNoViolations,
33
32
  undoDSVirtualListTesteable: () => import_DSVirtualList.undoDSVirtualListTesteable
34
33
  });
35
34
  module.exports = __toCommonJS(testeable_utils_exports);
36
35
  var React = __toESM(require("react"));
37
- var import_axe_core = require("./axe-core/index.js");
38
36
  var import_DSVirtualList = require("./DSVirtualList.js");
39
37
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/testeable-utils/index.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["export { toHaveNoViolations } from './axe-core/index.js';\nexport { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './DSVirtualList.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,sBAAmC;AACnC,2BAAuE;",
4
+ "sourcesContent": ["export { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './DSVirtualList.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,2BAAuE;",
6
6
  "names": []
7
7
  }
package/dist/esm/index.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import * as React from "react";
2
- import { toHaveNoViolations, makeDSVirtualListTesteable, undoDSVirtualListTesteable } from "./testeable-utils/index.js";
2
+ import { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from "./testeable-utils/index.js";
3
3
  export {
4
4
  makeDSVirtualListTesteable,
5
- toHaveNoViolations,
6
5
  undoDSVirtualListTesteable
7
6
  };
8
7
  //# 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", "export { toHaveNoViolations, makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './testeable-utils/index.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,oBAAoB,4BAA4B,kCAAkC;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './testeable-utils/index.js';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,4BAA4B,kCAAkC;",
6
6
  "names": []
7
7
  }
@@ -1,9 +1,7 @@
1
1
  import * as React from "react";
2
- import { toHaveNoViolations } from "./axe-core/index.js";
3
2
  import { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from "./DSVirtualList.js";
4
3
  export {
5
4
  makeDSVirtualListTesteable,
6
- toHaveNoViolations,
7
5
  undoDSVirtualListTesteable
8
6
  };
9
7
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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/index.js';\nexport { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './DSVirtualList.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,0BAA0B;AACnC,SAAS,4BAA4B,kCAAkC;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './DSVirtualList.js';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,4BAA4B,kCAAkC;",
6
6
  "names": []
7
7
  }
@@ -1 +1 @@
1
- export { toHaveNoViolations, makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './testeable-utils/index.js';
1
+ export { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './testeable-utils/index.js';
@@ -1,2 +1 @@
1
- export { toHaveNoViolations } from './axe-core/index.js';
2
1
  export { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './DSVirtualList.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-test-utils",
3
- "version": "3.22.0-next.1",
3
+ "version": "3.22.0-next.16",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Test utilities",
6
6
  "files": [
@@ -43,12 +43,14 @@
43
43
  "axe-core": "4.6.3",
44
44
  "jest-axe": "7.0.1",
45
45
  "jest-matcher-utils": "29.5.0",
46
- "@elliemae/ds-system": "3.22.0-next.1"
46
+ "@elliemae/ds-system": "3.22.0-next.16"
47
47
  },
48
48
  "devDependencies": {
49
+ "@elliemae/pui-cli": "~9.0.0-next.22",
49
50
  "@testing-library/jest-dom": "~5.16.5",
50
51
  "@testing-library/react": "~12.1.3",
51
- "styled-components": "~5.3.9"
52
+ "styled-components": "~5.3.9",
53
+ "@elliemae/ds-monorepo-devops": "3.22.0-next.16"
52
54
  },
53
55
  "peerDependencies": {
54
56
  "react": "^17.0.2",
@@ -61,11 +63,12 @@
61
63
  },
62
64
  "scripts": {
63
65
  "dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
64
- "test": "node ../../scripts/testing/test.mjs",
66
+ "test": "pui-cli test --passWithNoTests",
65
67
  "lint": "node ../../scripts/lint.mjs",
66
68
  "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../.eslintrc.js' src/",
67
69
  "dts": "node ../../scripts/dts.mjs",
68
70
  "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
71
+ "versionx": "node ../../scripts/setup/switch-to-workspace-version.js",
69
72
  "dev:build": "pnpm --filter {.}... build",
70
73
  "dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
71
74
  "checkDeps": "npm exec ../ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
@@ -1,46 +0,0 @@
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
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var getMessageAndPass_exports = {};
30
- __export(getMessageAndPass_exports, {
31
- getMessageAndPass: () => getMessageAndPass
32
- });
33
- module.exports = __toCommonJS(getMessageAndPass_exports);
34
- var React = __toESM(require("react"));
35
- var import_jest_matcher_utils = require("jest-matcher-utils");
36
- var import_reporter = require("./reporter.js");
37
- const getMessageAndPass = (violations) => {
38
- const formatedViolations = (0, import_reporter.reporter)(violations);
39
- const pass = formatedViolations.length === 0;
40
- if (pass)
41
- return { message: () => "", pass };
42
- return { message: () => `${(0, import_jest_matcher_utils.matcherHint)(".toHaveNoViolations")}
43
-
44
- ${formatedViolations}`, pass };
45
- };
46
- //# sourceMappingURL=getMessageAndPass.js.map
@@ -1,7 +0,0 @@
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.js';\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
- }
@@ -1,36 +0,0 @@
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
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var axe_core_exports = {};
30
- __export(axe_core_exports, {
31
- toHaveNoViolations: () => import_toHaveNoViolations.toHaveNoViolations
32
- });
33
- module.exports = __toCommonJS(axe_core_exports);
34
- var React = __toESM(require("react"));
35
- var import_toHaveNoViolations = require("./toHaveNoViolations.js");
36
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
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.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,gCAAmC;",
6
- "names": []
7
- }
@@ -1,56 +0,0 @@
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
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var reporter_exports = {};
30
- __export(reporter_exports, {
31
- reporter: () => reporter
32
- });
33
- module.exports = __toCommonJS(reporter_exports);
34
- var React = __toESM(require("react"));
35
- var import_jest_matcher_utils = require("jest-matcher-utils");
36
- const colorYellow = (arg) => `\x1B[93m ${arg || ""} \x1B[0m`;
37
- const colorGrey = (arg) => `\x1B[90m ${arg || ""} \x1B[0m`;
38
- const colorBlue = (arg) => `\x1B[34m ${arg || ""} \x1B[0m`;
39
- const reporter = (violToFormat) => {
40
- if (violToFormat.length === 0)
41
- return "";
42
- const lineBreak = "\n\n";
43
- const horizontalLine = "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500";
44
- return violToFormat.map((violation) => {
45
- const errorBody = violation.nodes.map((node) => {
46
- const selector = node.target.join(", ");
47
- const expectedText = `Expected the HTML found at $('${selector}') to have no violations:${lineBreak}`;
48
- return `${expectedText + colorGrey(node.html) + lineBreak}Received:${lineBreak}${(0, import_jest_matcher_utils.printReceived)(
49
- `${violation.help} (${violation.id})`
50
- )}${lineBreak}${colorYellow(node.failureSummary)}${lineBreak}${violation.helpUrl ? `You can find more information on this issue here:
51
- ${colorBlue(violation.helpUrl)}` : ""}`;
52
- }).join(lineBreak);
53
- return errorBody;
54
- }).join(lineBreak + horizontalLine + lineBreak);
55
- };
56
- //# sourceMappingURL=reporter.js.map
@@ -1,7 +0,0 @@
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
- }
@@ -1,41 +0,0 @@
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
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var shouldIgnoreNodeViolation_exports = {};
30
- __export(shouldIgnoreNodeViolation_exports, {
31
- shouldIgnoreNodeViolation: () => shouldIgnoreNodeViolation
32
- });
33
- module.exports = __toCommonJS(shouldIgnoreNodeViolation_exports);
34
- var React = __toESM(require("react"));
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
- //# sourceMappingURL=shouldIgnoreNodeViolation.js.map
@@ -1,7 +0,0 @@
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
- }
@@ -1,55 +0,0 @@
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
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var toHaveNoViolations_exports = {};
30
- __export(toHaveNoViolations_exports, {
31
- toHaveNoViolations: () => toHaveNoViolations
32
- });
33
- module.exports = __toCommonJS(toHaveNoViolations_exports);
34
- var React = __toESM(require("react"));
35
- var import_getMessageAndPass = require("./getMessageAndPass.js");
36
- var import_shouldIgnoreNodeViolation = require("./shouldIgnoreNodeViolation.js");
37
- const toHaveNoViolations = {
38
- toHaveNoViolations(results) {
39
- const { violations } = results;
40
- const finalViolations = [];
41
- violations.forEach((violation) => {
42
- const { nodes } = violation;
43
- const newNodes = [];
44
- nodes.forEach((node) => {
45
- if (!(0, import_shouldIgnoreNodeViolation.shouldIgnoreNodeViolation)(node, violation))
46
- newNodes.push(node);
47
- });
48
- if (newNodes.length > 0) {
49
- finalViolations.push({ ...violation, nodes: newNodes });
50
- }
51
- });
52
- return { actual: violations, ...(0, import_getMessageAndPass.getMessageAndPass)(finalViolations) };
53
- }
54
- };
55
- //# sourceMappingURL=toHaveNoViolations.js.map
@@ -1,7 +0,0 @@
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.js';\nimport { shouldIgnoreNodeViolation } from './shouldIgnoreNodeViolation.js';\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
- }
@@ -1,16 +0,0 @@
1
- import * as React from "react";
2
- import { matcherHint } from "jest-matcher-utils";
3
- import { reporter } from "./reporter.js";
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
@@ -1,7 +0,0 @@
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.js';\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
- }
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- import { toHaveNoViolations } from "./toHaveNoViolations.js";
3
- export {
4
- toHaveNoViolations
5
- };
6
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
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.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,0BAA0B;",
6
- "names": []
7
- }
@@ -1,26 +0,0 @@
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
@@ -1,7 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
@@ -1,7 +0,0 @@
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
- }
@@ -1,25 +0,0 @@
1
- import * as React from "react";
2
- import { getMessageAndPass } from "./getMessageAndPass.js";
3
- import { shouldIgnoreNodeViolation } from "./shouldIgnoreNodeViolation.js";
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
@@ -1,7 +0,0 @@
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.js';\nimport { shouldIgnoreNodeViolation } from './shouldIgnoreNodeViolation.js';\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
- }
@@ -1,8 +0,0 @@
1
- import type { Result } from 'axe-core';
2
- export declare const getMessageAndPass: (violations: Result[]) => {
3
- message: () => string;
4
- pass: true;
5
- } | {
6
- message: () => string;
7
- pass: false;
8
- };
@@ -1 +0,0 @@
1
- export { toHaveNoViolations } from './toHaveNoViolations.js';
@@ -1,2 +0,0 @@
1
- import type { Result } from 'axe-core';
2
- export declare const reporter: (violToFormat: Result[]) => string;
@@ -1,2 +0,0 @@
1
- import type { NodeResult, Result } from 'axe-core';
2
- export declare const shouldIgnoreNodeViolation: (node: NodeResult, violation: Result) => boolean;
@@ -1,12 +0,0 @@
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
- };