@bigbinary/neeto-playwright-reporter 1.3.16 → 1.3.18

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 CHANGED
@@ -18618,8 +18618,8 @@ const sendHeartBeatSignal = async (ciBuildId) => {
18618
18618
  await runsApi.heartbeat(ciBuildId);
18619
18619
  }
18620
18620
  catch (error) {
18621
- consoleLogFormatted.redText(error.message);
18622
- consoleLogFormatted.error(ERRORS.heartbeat.stopped);
18621
+ consoleLogFormatted.error(error.message);
18622
+ consoleLogFormatted.redText(ERRORS.heartbeat.stopped);
18623
18623
  process.exit(1);
18624
18624
  }
18625
18625
  };
@@ -18687,7 +18687,7 @@ class MyReporter {
18687
18687
  consoleLogFormatted.dim(MESSAGES.onBegin.currentShard(shard.current));
18688
18688
  }
18689
18689
  await sendHeartBeatSignal(this.ciBuildId);
18690
- setInterval(async () => await sendHeartBeatSignal(this.ciBuildId), 60000);
18690
+ this.heartbeatInterval = setInterval(async () => await sendHeartBeatSignal(this.ciBuildId), 45000);
18691
18691
  this.attempts = attempts;
18692
18692
  };
18693
18693
  this.onTestBegin = async ({ id, title }, { retry }) => {
@@ -18794,6 +18794,7 @@ class MyReporter {
18794
18794
  }
18795
18795
  finally {
18796
18796
  consoleLogFormatted.invertBackground(MESSAGES.onEnd.runReported);
18797
+ clearInterval(this.heartbeatInterval);
18797
18798
  }
18798
18799
  };
18799
18800
  initializeAxios(options);
@@ -18806,6 +18807,7 @@ class MyReporter {
18806
18807
  this.unreportedAttemptCount = 0;
18807
18808
  this.hasRunStarted = false;
18808
18809
  this.testAttemptIds = [];
18810
+ this.heartbeatInterval = null;
18809
18811
  process.on("unhandledRejection", async (error) => {
18810
18812
  var _a, _b, _c;
18811
18813
  const data = (_a = error.response) === null || _a === void 0 ? void 0 : _a.data;