@browsermation/test 0.0.14 → 0.0.16

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
@@ -42871,7 +42871,7 @@ var {
42871
42871
  // package.json
42872
42872
  var package_default = {
42873
42873
  name: "@browsermation/test",
42874
- version: "0.0.14",
42874
+ version: "0.0.16",
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/index.js CHANGED
@@ -100,9 +100,12 @@ var import_test = __toESM(require("playwright/test"), 1);
100
100
  // src/test.ts
101
101
  var import_node_https2 = __toESM(require("node:https"));
102
102
  async function fetchEndpoint2() {
103
- console.log("fetching endpoint");
103
+ invariant(
104
+ process.env.SERVER_URL,
105
+ "SERVER_URL environment variable is not set"
106
+ );
104
107
  return new Promise((resolve, reject) => {
105
- import_node_https2.default.get(process.env.SERVER_URL || "https://localhost:3000", (res) => {
108
+ import_node_https2.default.get(process.env.SERVER_URL, (res) => {
106
109
  res.on("data", (chunk) => {
107
110
  const parsedData = JSON.parse(chunk.toString());
108
111
  if (parsedData.type === "tunnel-domain") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@browsermation/test",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "The testing platform for Playwright by Browsermation.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",