@browsermation/test 0.0.42 → 0.0.44

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 CHANGED
@@ -42258,7 +42258,7 @@ var {
42258
42258
  // package.json
42259
42259
  var package_default = {
42260
42260
  name: "@browsermation/test",
42261
- version: "0.0.42",
42261
+ version: "0.0.44",
42262
42262
  description: "The testing platform for Playwright by Browsermation.",
42263
42263
  main: "./dist/index.js",
42264
42264
  types: "./dist/index.d.ts",
@@ -46561,7 +46561,7 @@ async function uploadZip(zipBuffer, shardNumber, totalShards, playwrightConfig,
46561
46561
  }
46562
46562
  const headers = {
46563
46563
  "Content-Type": "multipart/form-data",
46564
- Authorization: `Bearer ${process.env.API_TOKEN}`
46564
+ Authorization: `Bearer ${process.env.BM_API_TOKEN}`
46565
46565
  };
46566
46566
  const response = await axios_default.post(process.env.API_URL, formData, {
46567
46567
  responseType: "stream",
@@ -46689,7 +46689,9 @@ function startTunnel(tunnelProcess, options) {
46689
46689
  process.exit();
46690
46690
  });
46691
46691
  tunnelProcess?.stdout?.on("data", (data) => {
46692
- console.log(`stdout: ${data}`);
46692
+ if (process.env.BM_DEBUG) {
46693
+ console.log(`stdout: ${data}`);
46694
+ }
46693
46695
  });
46694
46696
  tunnelProcess?.stderr?.on("data", (data) => {
46695
46697
  console.error(`stderr: ${data}`);
@@ -1,2 +1,2 @@
1
1
  import { PlaywrightTestConfig } from 'playwright/test';
2
- export declare function defineConfig<T extends PlaywrightTestConfig>(config: T): Promise<T & PlaywrightTestConfig>;
2
+ export declare function defineConfig<T>(config: PlaywrightTestConfig<T>): Promise<PlaywrightTestConfig<T>>;
package/dist/index.js CHANGED
@@ -573,7 +573,9 @@ function startTunnel(tunnelProcess2, options) {
573
573
  process.exit();
574
574
  });
575
575
  tunnelProcess2?.stdout?.on("data", (data) => {
576
- console.log(`stdout: ${data}`);
576
+ if (process.env.BM_DEBUG) {
577
+ console.log(`stdout: ${data}`);
578
+ }
577
579
  });
578
580
  tunnelProcess2?.stderr?.on("data", (data) => {
579
581
  console.error(`stderr: ${data}`);
@@ -687,7 +689,10 @@ async function fetchEndpoint2() {
687
689
  process.env.SERVER_URL,
688
690
  "SERVER_URL environment variable is not set"
689
691
  );
690
- invariant(process.env.API_TOKEN, "API_TOKEN environment variable is not set");
692
+ invariant(
693
+ process.env.BM_API_TOKEN,
694
+ "BM_API_TOKEN environment variable is not set"
695
+ );
691
696
  return new Promise((resolve, reject) => {
692
697
  import_node_https2.default.get(process.env.SERVER_URL, (res) => {
693
698
  res.on("data", (chunk) => {
package/dist/reporter.js CHANGED
@@ -33,20 +33,20 @@ var regex = (({ onlyFirst = false } = {}) => {
33
33
  var stripAnsi = (str) => str.replace(regex, "");
34
34
  var BrowsermationReporter = class {
35
35
  log(message) {
36
- if (process.env.REPORTER_LOGS) {
36
+ if (process.env.BM_REPORTER_LOGS) {
37
37
  console.log(message);
38
38
  }
39
39
  }
40
40
  async sendData(data) {
41
41
  try {
42
42
  await fetch(
43
- process.env.REPORTING_URL || "https://browsermation.com/api/v1/playwright/reporting",
43
+ process.env.BM_REPORTING_URL || "https://browsermation.com/api/v1/playwright/reporting",
44
44
  {
45
45
  method: "POST",
46
46
  headers: {
47
47
  Accept: "application/json",
48
48
  "Content-Type": "application/json",
49
- Authorization: `Bearer ${process.env.API_TOKEN}`
49
+ Authorization: `Bearer ${process.env.BM_API_TOKEN}`
50
50
  },
51
51
  body: JSON.stringify(data)
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@browsermation/test",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "description": "The testing platform for Playwright by Browsermation.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",