@browsermation/test 0.0.63-beta.14 → 0.0.63-beta.15
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/dist/reporter.js +7 -7
- package/package.json +1 -1
package/dist/reporter.js
CHANGED
|
@@ -154,7 +154,7 @@ var BrowsermationReporter = class {
|
|
|
154
154
|
async onBegin(_config, suite) {
|
|
155
155
|
const data = {
|
|
156
156
|
type: "begin",
|
|
157
|
-
timestamp: Date.
|
|
157
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
158
158
|
git_branch: await this.getCurrentBranch(),
|
|
159
159
|
git_repo: await this.getCurrentRepo(),
|
|
160
160
|
git_commit_id: await this.getLatestCommitId(),
|
|
@@ -167,7 +167,7 @@ var BrowsermationReporter = class {
|
|
|
167
167
|
this.log(`${JSON.stringify(data)}
|
|
168
168
|
`);
|
|
169
169
|
const response = await this.sendData(data);
|
|
170
|
-
if (response
|
|
170
|
+
if (response?.data?.suite_run_id) {
|
|
171
171
|
this.suiteRunId = response.data.suite_run_id;
|
|
172
172
|
this.log(`Received suite_run_id: ${this.suiteRunId}`);
|
|
173
173
|
}
|
|
@@ -179,7 +179,7 @@ var BrowsermationReporter = class {
|
|
|
179
179
|
start_time: result.startTime,
|
|
180
180
|
duration_in_ms: result.duration,
|
|
181
181
|
status: result.status,
|
|
182
|
-
timestamp: Date.
|
|
182
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
183
183
|
};
|
|
184
184
|
this.log(`${JSON.stringify(data)}
|
|
185
185
|
`);
|
|
@@ -192,7 +192,7 @@ var BrowsermationReporter = class {
|
|
|
192
192
|
title: test.title,
|
|
193
193
|
file: test.location.file,
|
|
194
194
|
hostname: (0, import_node_os.hostname)(),
|
|
195
|
-
timestamp: Date.
|
|
195
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
196
196
|
free_memory: (0, import_node_os.freemem)(),
|
|
197
197
|
total_memory: (0, import_node_os.totalmem)(),
|
|
198
198
|
cpus: (0, import_node_os.cpus)().length,
|
|
@@ -215,7 +215,7 @@ var BrowsermationReporter = class {
|
|
|
215
215
|
status: result.status,
|
|
216
216
|
duration_in_ms: result.duration,
|
|
217
217
|
errors: stripAnsi(result.error?.message || ""),
|
|
218
|
-
timestamp: Date.
|
|
218
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
219
219
|
free_memory: (0, import_node_os.freemem)(),
|
|
220
220
|
total_memory: (0, import_node_os.totalmem)(),
|
|
221
221
|
cpu_architecture: process.arch,
|
|
@@ -236,7 +236,7 @@ var BrowsermationReporter = class {
|
|
|
236
236
|
suite_run_id: this.suiteRunId,
|
|
237
237
|
message: error.message,
|
|
238
238
|
stack: error.stack,
|
|
239
|
-
timestamp: Date.
|
|
239
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
240
240
|
};
|
|
241
241
|
console.error(`${JSON.stringify(data)}
|
|
242
242
|
`);
|
|
@@ -246,7 +246,7 @@ var BrowsermationReporter = class {
|
|
|
246
246
|
const data = {
|
|
247
247
|
type: "exit",
|
|
248
248
|
suite_run_id: this.suiteRunId,
|
|
249
|
-
timestamp: Date.
|
|
249
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
250
250
|
};
|
|
251
251
|
this.log(`${JSON.stringify(data)}
|
|
252
252
|
`);
|