@bigbinary/neeto-playwright-reporter 1.3.3 → 1.3.5
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 +8 -9
- package/index.cjs.js.map +1 -1
- package/index.js +8 -9
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -18569,7 +18569,7 @@ const setAuthHeaders = (projectKey) => {
|
|
|
18569
18569
|
};
|
|
18570
18570
|
};
|
|
18571
18571
|
function initializeAxios({ projectKey, baseURL, }) {
|
|
18572
|
-
axios.defaults.baseURL = baseURL;
|
|
18572
|
+
axios.defaults.baseURL = baseURL !== null && baseURL !== void 0 ? baseURL : "https://connect.neetoplaydash.net";
|
|
18573
18573
|
setAuthHeaders(projectKey);
|
|
18574
18574
|
}
|
|
18575
18575
|
|
|
@@ -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]: {
|