Skip to content

Commit db33521

Browse files
fix: args (#163)
1 parent bfe9848 commit db33521

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: lib/parser.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ const config = (() => {
99
.option("testFolder", { describe: "e2e test folder name", default: "e2e", type: "string" })
1010
.option("appiumCapsLocation", { describe: "Capabilities", type: "string" })
1111
.option("sauceLab", { describe: "SauceLab", default: false, type: "boolean" })
12-
.option("port", { alias: "p", describe: "Appium port", type: "number", default: 4723 })
12+
.option("port", { alias: "p", describe: "Appium port", type: "number"})
1313
.option("attachToDebug", { alias: "a", describe: "Attach to appium desktop app.", default: false, type: "boolean" })
1414
.option("capabilitiesName", { describe: "Capabilities file name", default: "appium.capabilities.json", type: "string" })
1515
.option("sessionId", { alias: "s", describe: "Session to attach", default: false, type: "string" })
1616
.option("startSession", { describe: "Start session.", default: false, type: "boolean" })
17-
.option("wdaLocalPort", { alias: "wda", describe: "WDA port", default: 8410, type: "number" })
17+
.option("wdaLocalPort", { alias: "wda", describe: "WDA port", type: "number" })
1818
.option("verbose", { alias: "v", describe: "Log actions", type: "boolean" })
1919
.option("path", { describe: "path", default: process.cwd(), type: "string" })
2020
.option("relaxedSecurity", { describe: "appium relaxedSecurity", default: false, type: "boolean" })
@@ -70,8 +70,8 @@ const config = (() => {
7070
projectBinary: projectBinary,
7171
pluginRoot: pluginRoot,
7272
pluginBinary: pluginBinary,
73-
port: options.port || process.env.npm_config_port || process.env["APPIUM_PORT"] || 8300,
74-
wdaLocalPort: options.wdaLocalPort || process.env.npm_config_wdaLocalPort || process.env["WDA_LOCAL_PORT"],
73+
port: options.port || process.env.npm_config_port || process.env["APPIUM_PORT"] || 4723 ,
74+
wdaLocalPort: options.wdaLocalPort || process.env.npm_config_wdaLocalPort || process.env["WDA_LOCAL_PORT"] || 8410,
7575
testFolder: options.testFolder || process.env.npm_config_testFolder || "e2e",
7676
runType: options.runType || process.env.npm_config_runType,
7777
appiumCapsLocation: options.appiumCapsLocation || process.env.npm_config_appiumCapsLocation || join(projectDir, options.testFolder, "config", options.capabilitiesName),

0 commit comments

Comments
 (0)