@sa11y/jest 4.1.3 → 4.1.4
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/automatic.d.ts.map +1 -1
- package/dist/automatic.js +4 -1
- package/package.json +7 -7
package/dist/automatic.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automatic.d.ts","sourceRoot":"","sources":["../src/automatic.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"automatic.d.ts","sourceRoot":"","sources":["../src/automatic.ts"],"names":[],"mappings":"AAeA;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAI7B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B,CAAC;AAYF;;GAEG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAUtF;AAED;;;GAGG;AACH,wBAAsB,cAAc,CAAC,IAAI,GAAE,aAAoC,GAAG,OAAO,CAAC,IAAI,CAAC,CAgC9F;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,GAAE,aAAoC,GAAG,IAAI,CAM7F"}
|
package/dist/automatic.js
CHANGED
|
@@ -12,6 +12,8 @@ const assert_1 = require("@sa11y/assert");
|
|
|
12
12
|
const format_1 = require("@sa11y/format");
|
|
13
13
|
const matcher_1 = require("./matcher");
|
|
14
14
|
const globals_1 = require("@jest/globals");
|
|
15
|
+
const setup_1 = require("./setup");
|
|
16
|
+
const preset_rules_1 = require("@sa11y/preset-rules");
|
|
15
17
|
/**
|
|
16
18
|
* Default options when {@link registerSa11yAutomaticChecks} is invoked
|
|
17
19
|
*/
|
|
@@ -58,7 +60,8 @@ async function automaticCheck(opts = defaultAutoCheckOpts) {
|
|
|
58
60
|
// for test "${expect.getState().currentTestName}"
|
|
59
61
|
// : ${testPath}`
|
|
60
62
|
// );
|
|
61
|
-
|
|
63
|
+
// W-10004832 - Exclude descendancy based rules from automatic checks
|
|
64
|
+
violations.push(...(await (0, assert_1.getViolationsJSDOM)(currNode, (0, setup_1.adaptA11yConfig)(preset_rules_1.defaultRuleset))));
|
|
62
65
|
currNode = walker.nextSibling();
|
|
63
66
|
}
|
|
64
67
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sa11y/jest",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.4",
|
|
4
4
|
"description": "Accessibility testing matcher for Jest",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"homepage": "https://github.com/salesforce/sa11y/tree/master/packages/jest#readme",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@jest/test-result": "^27",
|
|
27
|
-
"@sa11y/assert": "4.1.
|
|
28
|
-
"@sa11y/format": "4.1.
|
|
29
|
-
"@sa11y/preset-rules": "4.1.
|
|
27
|
+
"@sa11y/assert": "4.1.4",
|
|
28
|
+
"@sa11y/format": "4.1.4",
|
|
29
|
+
"@sa11y/preset-rules": "4.1.4",
|
|
30
30
|
"jest-matcher-utils": "^27"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@jest/globals": "28.1.3",
|
|
37
|
-
"@sa11y/common": "4.1.
|
|
38
|
-
"@sa11y/test-utils": "4.1.
|
|
37
|
+
"@sa11y/common": "4.1.4",
|
|
38
|
+
"@sa11y/test-utils": "4.1.4"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": "^14 || ^16"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "5138961604ea2253016f6cef7aebc148f9970773"
|
|
47
47
|
}
|