testaro 72.3.3 → 72.4.3

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 (2) hide show
  1. package/package.json +1 -1
  2. package/tests/testaro.js +7 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "72.3.3",
3
+ "version": "72.4.3",
4
4
  "description": "Run 1300 web accessibility tests from 10 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/tests/testaro.js CHANGED
@@ -504,9 +504,14 @@ exports.reporter = async (page, report, actIndex) => {
504
504
  // Wait 1 second to prevent out-of-order logging with granular reporting.
505
505
  await wait(1000);
506
506
  // Get the rules to be tested for and their execution order.
507
+ // 'y' = include-list: run exactly the rules in ruleSpec.slice(1).
508
+ // 'n' = exclude-list: run all defaultOn rules EXCEPT those in ruleSpec.slice(1).
509
+ const excludeIDs = ruleSpec.slice(1);
507
510
  const jobRuleIDs = ruleSpec[0] === 'y'
508
- ? ruleSpec.slice(1)
509
- : allRules.filter(rule => rule.defaultOn && ! allRuleIDs.includes(rule.id));
511
+ ? excludeIDs
512
+ : allRules
513
+ .filter(rule => rule.defaultOn && ! excludeIDs.includes(rule.id))
514
+ .map(rule => rule.id);
510
515
  const jobRules = allRules.filter(rule => jobRuleIDs.includes(rule.id));
511
516
  let justPrevented = false;
512
517
  // For each rule to be tested for: