@browsermation/test 0.0.49 → 0.0.51
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 +7 -2
- package/dist/index.js +2 -2
- 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.51",
|
|
42262
42262
|
description: "The testing platform for Playwright by Browsermation.",
|
|
42263
42263
|
main: "./dist/index.js",
|
|
42264
42264
|
types: "./dist/index.d.ts",
|
|
@@ -46742,7 +46742,12 @@ async function downloadFile(fileUrl, outputLocationPath) {
|
|
|
46742
46742
|
|
|
46743
46743
|
// src/bin/cli.ts
|
|
46744
46744
|
var program2 = new Command().name("browsermation").version(package_default.version).description(package_default.description);
|
|
46745
|
-
program2.command("
|
|
46745
|
+
program2.command("tunnel").option("-p, --port <port>").action(async (options) => {
|
|
46746
|
+
console.log(source_default.blue(`\u{1F680} Starting BrowserMation Tunnel...`));
|
|
46747
|
+
let tunnelProcess = null;
|
|
46748
|
+
await startTunnel(tunnelProcess, options);
|
|
46749
|
+
});
|
|
46750
|
+
program2.command("test").option("-t, --tunnel <port>").option("-p, --proxy").option("--project <project>", "Run a specific project").option(
|
|
46746
46751
|
"-s, --subdomain <subdomain>",
|
|
46747
46752
|
"Use subdomain <subdomain> for BrowserMation tunnel"
|
|
46748
46753
|
).action(async (folder, totalShards, options) => {
|
package/dist/index.js
CHANGED
|
@@ -648,8 +648,8 @@ async function defineConfig(config) {
|
|
|
648
648
|
)
|
|
649
649
|
);
|
|
650
650
|
let tunnelUrl = void 0;
|
|
651
|
-
if (config.webServer && (Array.isArray(config.webServer) ? config.webServer.some((server) => server
|
|
652
|
-
const port = (Array.isArray(config.webServer) ? config.webServer.find((server) => server
|
|
651
|
+
if (process.env.BM_TUNNEL_PORT || config.webServer && (Array.isArray(config.webServer) ? config.webServer.some((server) => server?.port) : config.webServer?.port)) {
|
|
652
|
+
const port = process.env.BM_TUNNEL_PORT || (Array.isArray(config.webServer) ? config.webServer.find((server) => server?.port)?.port : config?.webServer?.port);
|
|
653
653
|
({ tunnelUrl } = await startTunnel(tunnelProcess, {
|
|
654
654
|
tunnel: port
|
|
655
655
|
}));
|