@bigbinary/neeto-playwright-reporter 1.3.0 → 1.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/index.cjs.js +3 -1
- package/index.cjs.js.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -18571,6 +18571,7 @@ const sendHeartBeatSignal = async (ciBuildId) => {
|
|
|
18571
18571
|
await runsApi.heartbeat(ciBuildId);
|
|
18572
18572
|
}
|
|
18573
18573
|
catch (error) {
|
|
18574
|
+
console.log(error.message);
|
|
18574
18575
|
consoleLogFormatted.error(ERRORS.heartbeat.stopped);
|
|
18575
18576
|
process.exit(1);
|
|
18576
18577
|
}
|
|
@@ -18633,10 +18634,11 @@ class MyReporter {
|
|
|
18633
18634
|
this.currentShard = shard === null || shard === void 0 ? void 0 : shard.current;
|
|
18634
18635
|
};
|
|
18635
18636
|
this.onTestBegin = async ({ id, title }, { retry }) => {
|
|
18637
|
+
var _a, _b;
|
|
18636
18638
|
consoleLogFormatted.invertBackground(MESSAGES.onTestBegin.startingTest(title));
|
|
18637
18639
|
try {
|
|
18638
18640
|
this.retryAttemptStartedAt = new Date();
|
|
18639
|
-
while (!this.attempts[id]["0"])
|
|
18641
|
+
while (!((_b = (_a = this.attempts) === null || _a === void 0 ? void 0 : _a[id]) === null || _b === void 0 ? void 0 : _b["0"]))
|
|
18640
18642
|
await waitUntilTimeout(100); // Poll every 100 milliseconds
|
|
18641
18643
|
if (retry === 0) {
|
|
18642
18644
|
await attemptsApi.update(this.ciBuildId, id, this.attempts[id]["0"], {
|