@bigbinary/neeto-playwright-reporter 1.3.2 → 1.3.4
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 +11 -8
- package/index.cjs.js.map +1 -1
- package/index.js +11 -8
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -18621,17 +18621,16 @@ class MyReporter {
|
|
|
18621
18621
|
this.retryAttemptStartedAt = new Date();
|
|
18622
18622
|
while (!((_b = (_a = this.attempts) === null || _a === void 0 ? void 0 : _a[id]) === null || _b === void 0 ? void 0 : _b["0"]))
|
|
18623
18623
|
await waitUntilTimeout(100); // Poll every 100 milliseconds
|
|
18624
|
+
const attemptsPayload = {
|
|
18625
|
+
status: "running",
|
|
18626
|
+
started_at: new Date().toString(),
|
|
18627
|
+
shard: this.currentShard,
|
|
18628
|
+
};
|
|
18624
18629
|
if (retry === 0) {
|
|
18625
|
-
await attemptsApi.update(this.ciBuildId, id, this.attempts[id]["0"],
|
|
18626
|
-
status: "running",
|
|
18627
|
-
started_at: new Date().toString(),
|
|
18628
|
-
});
|
|
18630
|
+
await attemptsApi.update(this.ciBuildId, id, this.attempts[id]["0"], attemptsPayload);
|
|
18629
18631
|
}
|
|
18630
18632
|
else {
|
|
18631
|
-
const { data: { history_id, attempt_id }, } = await attemptsApi.create(this.ciBuildId, id,
|
|
18632
|
-
status: "running",
|
|
18633
|
-
started_at: new Date().toString(),
|
|
18634
|
-
});
|
|
18633
|
+
const { data: { history_id, attempt_id }, } = await attemptsApi.create(this.ciBuildId, id, attemptsPayload);
|
|
18635
18634
|
this.attempts = {
|
|
18636
18635
|
...this.attempts,
|
|
18637
18636
|
[history_id]: {
|
|
@@ -18714,6 +18713,10 @@ class MyReporter {
|
|
|
18714
18713
|
this.testResultCalls = [];
|
|
18715
18714
|
this.totalTestCount = 0;
|
|
18716
18715
|
this.reportedTestCount = 0;
|
|
18716
|
+
process.on("unhandledRejection", error => {
|
|
18717
|
+
var _a;
|
|
18718
|
+
consoleLogFormatted.error((_a = error === null || error === void 0 ? void 0 : error.message) !== null && _a !== void 0 ? _a : JSON.stringify(error));
|
|
18719
|
+
});
|
|
18717
18720
|
}
|
|
18718
18721
|
}
|
|
18719
18722
|
|