testaro 37.1.0 → 37.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": "37.1.0",
3
+ "version": "37.2.0",
4
4
  "description": "Run 1000 web accessibility tests from 10 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  /*
2
- © 2022–2023 CVS Health and/or one of its affiliates. All rights reserved.
2
+ © 2022–2024 CVS Health and/or one of its affiliates. All rights reserved.
3
3
 
4
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
5
5
  of this software and associated documentation files (the "Software"), to deal
@@ -32,15 +32,16 @@ const {validateTest} = require('../validateTest');
32
32
 
33
33
  // OPERATION
34
34
 
35
- // Get the names of the Testaro validation test files.
36
- fs.readdir(`${__dirname}/../tests/jobs`)
35
+ // Get the names of the Testaro tes files.
36
+ fs.readdir(`${__dirname}/../../testaro/`)
37
37
  // When they arrive:
38
38
  .then(async fileNames => {
39
39
  // For each file name:
40
40
  for (const fileName of fileNames) {
41
- // Get the test ID from it by disregarding its .json extension.
42
- const testID = fileName.slice(0, -5);
41
+ // Get the test ID from it by disregarding its extension.
42
+ const testID = fileName.replace(/\..+$/, '');
43
43
  // Validate the test.
44
+ console.log(`### Validating Testaro test ${testID}`);
44
45
  await validateTest(testID);
45
46
  }
46
47
  });