@jrpool/kilotest 39.0.0 → 39.0.1

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 (3) hide show
  1. package/index.js +2 -1
  2. package/package.json +1 -1
  3. package/util.js +1 -0
package/index.js CHANGED
@@ -18,6 +18,7 @@ const {
18
18
  getReport,
19
19
  getRecs,
20
20
  getReportPath,
21
+ hiddenReportsPath,
21
22
  isHidden,
22
23
  isReportAvailable,
23
24
  isTimeStamp,
@@ -803,7 +804,7 @@ const requestHandler = async (request, response) => {
803
804
 
804
805
  const serve = async (protocolModule, options) => {
805
806
  // Create any missing directories.
806
- for (const path of [queuePath, claimedPath, failedPath, reportsPath]) {
807
+ for (const path of [queuePath, claimedPath, failedPath, hiddenReportsPath, reportsPath]) {
807
808
  await fs.mkdir(path, {recursive: true});
808
809
  }
809
810
  const server = protocolModule === 'https'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jrpool/kilotest",
3
- "version": "39.0.0",
3
+ "version": "39.0.1",
4
4
  "description": "Ensemble testing for front-end web quality",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/util.js CHANGED
@@ -711,6 +711,7 @@ const getReportStats = exports.getReportStats = async (timeStamp, jobID) => {
711
711
  };
712
712
  // Returns whether a report is hidden.
713
713
  exports.isHidden = async (timeStamp, jobID) => {
714
+ await fs.mkdir(hiddenReportsPath, {recursive: true});
714
715
  // Get the names of the hidden report files.
715
716
  const hiddenReportFileNames = await fs.readdir(hiddenReportsPath);
716
717
  // Return whether the report is among them.