@testomatio/reporter 2.3.0 → 2.3.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.
- package/lib/utils/utils.js +1 -1
- package/package.json +1 -1
- package/src/utils/utils.js +2 -2
package/lib/utils/utils.js
CHANGED
|
@@ -409,7 +409,7 @@ function readLatestRunId() {
|
|
|
409
409
|
return fs_1.default.readFileSync(filePath)?.toString()?.trim() ?? null;
|
|
410
410
|
}
|
|
411
411
|
catch (e) {
|
|
412
|
-
|
|
412
|
+
debug('Could not read latest run ID from file: ', e);
|
|
413
413
|
return null;
|
|
414
414
|
}
|
|
415
415
|
}
|
package/package.json
CHANGED
package/src/utils/utils.js
CHANGED
|
@@ -361,7 +361,7 @@ function readLatestRunId() {
|
|
|
361
361
|
try {
|
|
362
362
|
const filePath = path.join(os.tmpdir(), `testomatio.latest.run`);
|
|
363
363
|
if (!fs.existsSync(filePath)) return null;
|
|
364
|
-
|
|
364
|
+
|
|
365
365
|
const stats = fs.statSync(filePath);
|
|
366
366
|
const diff = +new Date() - +stats.mtime;
|
|
367
367
|
const diffHours = diff / 1000 / 60 / 60;
|
|
@@ -369,7 +369,7 @@ function readLatestRunId() {
|
|
|
369
369
|
|
|
370
370
|
return fs.readFileSync(filePath)?.toString()?.trim() ?? null;
|
|
371
371
|
} catch (e) {
|
|
372
|
-
|
|
372
|
+
debug('Could not read latest run ID from file: ', e);
|
|
373
373
|
return null;
|
|
374
374
|
}
|
|
375
375
|
}
|