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.
- package/package.json +1 -1
- package/tests/testaro.js +7 -2
package/package.json
CHANGED
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
|
-
?
|
|
509
|
-
: allRules
|
|
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:
|