@elliemae/ds-test-utils 3.16.0-next.1 → 3.16.0-next.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -30,5 +30,5 @@ __export(src_exports, {
30
30
  });
31
31
  module.exports = __toCommonJS(src_exports);
32
32
  var React = __toESM(require("react"));
33
- var import_testeable_utils = require("./testeable-utils");
33
+ var import_testeable_utils = require("./testeable-utils/index.js");
34
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": ["export { toHaveNoViolations, makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './testeable-utils';\n", "import * as React from 'react';\nexport { React };\n"],
4
+ "sourcesContent": ["export { toHaveNoViolations, makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './testeable-utils/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,6BAA2F;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "commonjs",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
7
+ }
@@ -29,7 +29,7 @@ __export(getMessageAndPass_exports, {
29
29
  module.exports = __toCommonJS(getMessageAndPass_exports);
30
30
  var React = __toESM(require("react"));
31
31
  var import_jest_matcher_utils = require("jest-matcher-utils");
32
- var import_reporter = require("./reporter");
32
+ var import_reporter = require("./reporter.js");
33
33
  const getMessageAndPass = (violations) => {
34
34
  const formatedViolations = (0, import_reporter.reporter)(violations);
35
35
  const pass = formatedViolations.length === 0;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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"],
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
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
6
  "names": []
7
7
  }
@@ -28,5 +28,5 @@ __export(axe_core_exports, {
28
28
  });
29
29
  module.exports = __toCommonJS(axe_core_exports);
30
30
  var React = __toESM(require("react"));
31
- var import_toHaveNoViolations = require("./toHaveNoViolations");
31
+ var import_toHaveNoViolations = require("./toHaveNoViolations.js");
32
32
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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"],
4
+ "sourcesContent": ["export { toHaveNoViolations } from './toHaveNoViolations.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,gCAAmC;",
6
6
  "names": []
7
7
  }
@@ -28,8 +28,8 @@ __export(toHaveNoViolations_exports, {
28
28
  });
29
29
  module.exports = __toCommonJS(toHaveNoViolations_exports);
30
30
  var React = __toESM(require("react"));
31
- var import_getMessageAndPass = require("./getMessageAndPass");
32
- var import_shouldIgnoreNodeViolation = require("./shouldIgnoreNodeViolation");
31
+ var import_getMessageAndPass = require("./getMessageAndPass.js");
32
+ var import_shouldIgnoreNodeViolation = require("./shouldIgnoreNodeViolation.js");
33
33
  const toHaveNoViolations = {
34
34
  toHaveNoViolations(results) {
35
35
  const { violations } = results;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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"],
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
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
6
  "names": []
7
7
  }
@@ -30,6 +30,6 @@ __export(testeable_utils_exports, {
30
30
  });
31
31
  module.exports = __toCommonJS(testeable_utils_exports);
32
32
  var React = __toESM(require("react"));
33
- var import_axe_core = require("./axe-core");
34
- var import_DSVirtualList = require("./DSVirtualList");
33
+ var import_axe_core = require("./axe-core/index.js");
34
+ var import_DSVirtualList = require("./DSVirtualList.js");
35
35
  //# 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';\nexport { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './DSVirtualList';\n", "import * as React from 'react';\nexport { React };\n"],
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
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,sBAAmC;AACnC,2BAAuE;",
6
6
  "names": []
7
7
  }
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { toHaveNoViolations, makeDSVirtualListTesteable, undoDSVirtualListTesteable } from "./testeable-utils";
2
+ import { toHaveNoViolations, makeDSVirtualListTesteable, undoDSVirtualListTesteable } from "./testeable-utils/index.js";
3
3
  export {
4
4
  makeDSVirtualListTesteable,
5
5
  toHaveNoViolations,
@@ -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';\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { toHaveNoViolations, makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './testeable-utils/index.js';\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,oBAAoB,4BAA4B,kCAAkC;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
7
+ }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { matcherHint } from "jest-matcher-utils";
3
- import { reporter } from "./reporter";
3
+ import { reporter } from "./reporter.js";
4
4
  const getMessageAndPass = (violations) => {
5
5
  const formatedViolations = reporter(violations);
6
6
  const pass = formatedViolations.length === 0;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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"],
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
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
6
  "names": []
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { toHaveNoViolations } from "./toHaveNoViolations";
2
+ import { toHaveNoViolations } from "./toHaveNoViolations.js";
3
3
  export {
4
4
  toHaveNoViolations
5
5
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { toHaveNoViolations } from './toHaveNoViolations.js';\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,0BAA0B;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
- import { getMessageAndPass } from "./getMessageAndPass";
3
- import { shouldIgnoreNodeViolation } from "./shouldIgnoreNodeViolation";
2
+ import { getMessageAndPass } from "./getMessageAndPass.js";
3
+ import { shouldIgnoreNodeViolation } from "./shouldIgnoreNodeViolation.js";
4
4
  const toHaveNoViolations = {
5
5
  toHaveNoViolations(results) {
6
6
  const { violations } = results;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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"],
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
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
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
- import { toHaveNoViolations } from "./axe-core";
3
- import { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from "./DSVirtualList";
2
+ import { toHaveNoViolations } from "./axe-core/index.js";
3
+ import { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from "./DSVirtualList.js";
4
4
  export {
5
5
  makeDSVirtualListTesteable,
6
6
  toHaveNoViolations,
@@ -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';\nexport { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './DSVirtualList';\n"],
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
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,0BAA0B;AACnC,SAAS,4BAA4B,kCAAkC;",
6
6
  "names": []
7
7
  }
@@ -1 +1 @@
1
- export { toHaveNoViolations, makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './testeable-utils';
1
+ export { toHaveNoViolations, makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './testeable-utils/index.js';
@@ -1 +1 @@
1
- export { toHaveNoViolations } from './toHaveNoViolations';
1
+ export { toHaveNoViolations } from './toHaveNoViolations.js';
@@ -1,2 +1,2 @@
1
- export { toHaveNoViolations } from './axe-core';
2
- export { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './DSVirtualList';
1
+ export { toHaveNoViolations } from './axe-core/index.js';
2
+ 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.16.0-next.1",
3
+ "version": "3.16.0-next.10",
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.16.0-next.1"
41
+ "@elliemae/ds-system": "3.16.0-next.10"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@testing-library/dom": "~8.19.0",
@@ -62,7 +62,7 @@
62
62
  "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../.eslintrc.js' src/",
63
63
  "dts": "node ../../scripts/dts.mjs",
64
64
  "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
65
- "dev:build": "pnpm --filter {.}... build && pnpm --filter {.}... dts",
65
+ "dev:build": "pnpm --filter {.}... build",
66
66
  "dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
67
67
  "checkDeps": "npx -yes ../ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
68
68
  }