@browsermation/test 0.0.30 → 0.0.32
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/index.js +10 -1
- package/package.json +1 -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.32",
|
|
42262
42262
|
description: "The testing platform for Playwright by Browsermation.",
|
|
42263
42263
|
main: "./dist/index.js",
|
|
42264
42264
|
types: "./dist/index.d.ts",
|
package/dist/index.js
CHANGED
|
@@ -589,6 +589,14 @@ function startTunnel(tunnelProcess2, options) {
|
|
|
589
589
|
|
|
590
590
|
// src/defineConfig.ts
|
|
591
591
|
async function fetchEndpoint() {
|
|
592
|
+
if (!process.env.BM_API_TOKEN) {
|
|
593
|
+
console.error(
|
|
594
|
+
source_default.red.bold(
|
|
595
|
+
"\u274C Error: BM_API_TOKEN environment variable is not set. Please set it to your API token."
|
|
596
|
+
)
|
|
597
|
+
);
|
|
598
|
+
process.exit(1);
|
|
599
|
+
}
|
|
592
600
|
if (!process.env.BM_SERVER_URL) {
|
|
593
601
|
process.env.BM_SERVER_URL = "https://browsermation.test/api/v1/tasks/tests/playwright/ws";
|
|
594
602
|
}
|
|
@@ -599,7 +607,8 @@ async function fetchEndpoint() {
|
|
|
599
607
|
return new Promise((resolve, reject) => {
|
|
600
608
|
const options = {
|
|
601
609
|
headers: {
|
|
602
|
-
Authorization: process.env.BM_API_TOKEN || ""
|
|
610
|
+
Authorization: `Bearer ${process.env.BM_API_TOKEN || ""}`,
|
|
611
|
+
Accept: "application/json"
|
|
603
612
|
}
|
|
604
613
|
};
|
|
605
614
|
protocol.get(process.env.BM_SERVER_URL || "", options, (res) => {
|