testaro 74.1.0 → 74.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "74.1.0",
3
+ "version": "74.1.2",
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/run.js CHANGED
@@ -23,6 +23,8 @@ const {getCatalog} = require('./procs/catalog');
23
23
  const {nowString} = require('./procs/dateTime');
24
24
  // Module to create browsers.
25
25
  const {chromium} = require('playwright-extra');
26
+ const fs = require('fs').promises;
27
+ const os = require('os');
26
28
  // Module to evade automation detection.
27
29
  // Stealth is Chromium-specific: its evasions inject Chromium-only launch
28
30
  // flags (e.g. `--disable-blink-features=AutomationControlled`) and patch
package/tests/testaro.js CHANGED
@@ -504,7 +504,14 @@ exports.reporter = async (page, report, actIndex) => {
504
504
  && ['y', 'n'].includes(ruleSpec[0])
505
505
  && ruleSpec.slice(1).every(ruleID => allRuleIDs.includes(ruleID))
506
506
  ) {
507
- // Get the rules to be (y) or not to be (n) tested for and their execution order.
507
+ // Get the rules to be tested for and their execution order.
508
+ // 'y' = include-list: run exactly the rules in ruleSpec.slice(1).
509
+ // 'n' = exclude-list: run all defaultOn rules EXCEPT those in
510
+ // ruleSpec.slice(1). (The prior implementation was a no-op:
511
+ // it checked against `allRuleIDs` — which is every rule's id —
512
+ // so the predicate was never true, and it returned rule
513
+ // objects rather than IDs, which then never matched the
514
+ // string comparison on the next line.)
508
515
  const excludeIDs = ruleSpec.slice(1);
509
516
  const jobRuleIDs = ruleSpec[0] === 'y'
510
517
  ? excludeIDs