@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.js
CHANGED
|
@@ -18552,6 +18552,7 @@ const sendHeartBeatSignal = async (ciBuildId) => {
|
|
|
18552
18552
|
await runsApi.heartbeat(ciBuildId);
|
|
18553
18553
|
}
|
|
18554
18554
|
catch (error) {
|
|
18555
|
+
console.log(error.message);
|
|
18555
18556
|
consoleLogFormatted.error(ERRORS.heartbeat.stopped);
|
|
18556
18557
|
process.exit(1);
|
|
18557
18558
|
}
|
|
@@ -18614,10 +18615,11 @@ class MyReporter {
|
|
|
18614
18615
|
this.currentShard = shard === null || shard === void 0 ? void 0 : shard.current;
|
|
18615
18616
|
};
|
|
18616
18617
|
this.onTestBegin = async ({ id, title }, { retry }) => {
|
|
18618
|
+
var _a, _b;
|
|
18617
18619
|
consoleLogFormatted.invertBackground(MESSAGES.onTestBegin.startingTest(title));
|
|
18618
18620
|
try {
|
|
18619
18621
|
this.retryAttemptStartedAt = new Date();
|
|
18620
|
-
while (!this.attempts[id]["0"])
|
|
18622
|
+
while (!((_b = (_a = this.attempts) === null || _a === void 0 ? void 0 : _a[id]) === null || _b === void 0 ? void 0 : _b["0"]))
|
|
18621
18623
|
await waitUntilTimeout(100); // Poll every 100 milliseconds
|
|
18622
18624
|
if (retry === 0) {
|
|
18623
18625
|
await attemptsApi.update(this.ciBuildId, id, this.attempts[id]["0"], {
|