@browsermation/test 0.0.19 → 0.0.20
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/bin/cli.js +1 -1
- package/dist/reporter.js +13 -2
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -42871,7 +42871,7 @@ var {
|
|
|
42871
42871
|
// package.json
|
|
42872
42872
|
var package_default = {
|
|
42873
42873
|
name: "@browsermation/test",
|
|
42874
|
-
version: "0.0.
|
|
42874
|
+
version: "0.0.20",
|
|
42875
42875
|
description: "The testing platform for Playwright by Browsermation.",
|
|
42876
42876
|
main: "./dist/index.js",
|
|
42877
42877
|
types: "./dist/index.d.ts",
|
package/dist/reporter.js
CHANGED
|
@@ -39,7 +39,7 @@ var BrowsermationReporter = class {
|
|
|
39
39
|
JSON.stringify(data, null, 2)
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
|
-
await fetch(
|
|
42
|
+
const response = await fetch(
|
|
43
43
|
process.env.SERVER_URL || "https://browsermation.com/api/v1/playwright/reporting",
|
|
44
44
|
{
|
|
45
45
|
method: "POST",
|
|
@@ -51,7 +51,18 @@ var BrowsermationReporter = class {
|
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
53
|
if (process.env.REPORTER_DEBUG) {
|
|
54
|
-
console.log(
|
|
54
|
+
console.log(
|
|
55
|
+
"Send data to Browsermation:",
|
|
56
|
+
JSON.stringify(
|
|
57
|
+
{
|
|
58
|
+
data,
|
|
59
|
+
response: await response.json(),
|
|
60
|
+
statusCode: response.status
|
|
61
|
+
},
|
|
62
|
+
null,
|
|
63
|
+
2
|
|
64
|
+
)
|
|
65
|
+
);
|
|
55
66
|
}
|
|
56
67
|
}
|
|
57
68
|
async onBegin(_config, suite) {
|