testaro 58.1.2 → 58.2.0

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": "58.1.2",
3
+ "version": "58.2.0",
4
4
  "description": "Run 1000 web accessibility tests from 11 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/run.js CHANGED
@@ -32,7 +32,7 @@
32
32
  // Module to perform file operations.
33
33
  const fs = require('fs/promises');
34
34
  // Module to keep secrets.
35
- require('dotenv').config();
35
+ require('dotenv').config({quiet: true});
36
36
  // Module to validate jobs.
37
37
  const {isBrowserID, isDeviceID, isURL, isValidJob, tools} = require('./procs/job');
38
38
  // Module to standardize report formats.
@@ -587,9 +587,9 @@ const doActs = async (report, opts = {}) => {
587
587
  const message = `>>>> ${type}${actSuffix}`;
588
588
  // If granular reporting has been specified:
589
589
  if (report.observe) {
590
- // If a progress callback has been provided:
591
590
  const whichParam = which ? `&which=${which}` : '';
592
591
  const messageParams = `act=${type}${whichParam}`;
592
+ // If a progress callback has been provided:
593
593
  if (onProgress) {
594
594
  // Notify the observer of the act.
595
595
  try {
package/tests/aslint.js CHANGED
@@ -41,9 +41,8 @@ exports.reporter = async (page, report, actIndex, timeLimit) => {
41
41
  let result = {};
42
42
  // Get the ASLint runner and bundle scripts.
43
43
  const aslintRunner = await fs.readFile(`${__dirname}/../procs/aslint.js`, 'utf8');
44
- const aslintBundle = await fs.readFile(
45
- `${__dirname}/../node_modules/aslint-testaro/aslint.bundle.js`, 'utf8'
46
- );
44
+ const aslintBundlePath = require.resolve('aslint-testaro/aslint.bundle.js');
45
+ const aslintBundle = await fs.readFile(aslintBundlePath, 'utf8');
47
46
  // Get the nonce, if any.
48
47
  const act = report.acts[actIndex];
49
48
  const {jobData} = report;