@browsermation/test 0.0.37 → 0.0.39
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 +2 -1
- package/dist/index.js +8 -0
- package/package.json +2 -1
package/dist/bin/cli.js
CHANGED
|
@@ -42258,7 +42258,7 @@ var {
|
|
|
42258
42258
|
// package.json
|
|
42259
42259
|
var package_default = {
|
|
42260
42260
|
name: "@browsermation/test",
|
|
42261
|
-
version: "0.0.
|
|
42261
|
+
version: "0.0.39",
|
|
42262
42262
|
description: "The testing platform for Playwright by Browsermation.",
|
|
42263
42263
|
main: "./dist/index.js",
|
|
42264
42264
|
types: "./dist/index.d.ts",
|
|
@@ -42308,6 +42308,7 @@ var package_default = {
|
|
|
42308
42308
|
typescript: "^5.9.2"
|
|
42309
42309
|
},
|
|
42310
42310
|
dependencies: {
|
|
42311
|
+
"@browsermation/test": "^0.0.36",
|
|
42311
42312
|
"@playwright/test": "^1.55.0",
|
|
42312
42313
|
archiver: "^7.0.1",
|
|
42313
42314
|
axios: "^1.10.0",
|
package/dist/index.js
CHANGED
|
@@ -604,6 +604,11 @@ async function fetchEndpoint() {
|
|
|
604
604
|
if (process.env.BM_SERVER_URL.startsWith("http:")) {
|
|
605
605
|
protocol = import_node_http.default;
|
|
606
606
|
}
|
|
607
|
+
console.log(
|
|
608
|
+
source_default.blue.bold(
|
|
609
|
+
`\u{1F50D} Fetching WebSocket endpoint from ${process.env.BM_SERVER_URL}...`
|
|
610
|
+
)
|
|
611
|
+
);
|
|
607
612
|
return new Promise((resolve, reject) => {
|
|
608
613
|
const options = {
|
|
609
614
|
headers: {
|
|
@@ -627,6 +632,9 @@ async function fetchEndpoint() {
|
|
|
627
632
|
reject(err);
|
|
628
633
|
});
|
|
629
634
|
res.on("data", async (chunk) => {
|
|
635
|
+
if (process.env.BM_DEBUG) {
|
|
636
|
+
console.log("Received chunk:", chunk.toString());
|
|
637
|
+
}
|
|
630
638
|
try {
|
|
631
639
|
const parsedData = JSON.parse(chunk.toString());
|
|
632
640
|
if (parsedData.type === "ws-endpoint") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@browsermation/test",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.39",
|
|
4
4
|
"description": "The testing platform for Playwright by Browsermation.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"typescript": "^5.9.2"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
+
"@browsermation/test": "^0.0.36",
|
|
53
54
|
"@playwright/test": "^1.55.0",
|
|
54
55
|
"archiver": "^7.0.1",
|
|
55
56
|
"axios": "^1.10.0",
|