@wdio/config
Advanced tools
Comparing version 6.0.0-alpha.0 to 6.0.0-alpha.1
@@ -8,3 +8,4 @@ "use strict"; | ||
const DEFAULT_TIMEOUT = 10000; | ||
const DEFAULT_CONFIGS = { | ||
const DEFAULT_CONFIGS = () => ({ | ||
specs: [], | ||
@@ -26,2 +27,3 @@ suites: {}, | ||
filesToWatch: [], | ||
connectionRetryTimeout: 90000, | ||
connectionRetryCount: 3, | ||
@@ -64,3 +66,4 @@ execArgv: [], | ||
afterFeature: [] | ||
}; | ||
}); | ||
exports.DEFAULT_CONFIGS = DEFAULT_CONFIGS; | ||
@@ -67,0 +70,0 @@ const SUPPORTED_HOOKS = ['before', 'beforeSession', 'beforeSuite', 'beforeHook', 'beforeTest', 'beforeCommand', 'afterCommand', 'afterTest', 'afterHook', 'afterSuite', 'afterSession', 'after', 'beforeFeature', 'beforeScenario', 'beforeStep', 'afterStep', 'afterScenario', 'afterFeature', 'onReload', 'onPrepare', 'onComplete']; |
@@ -31,3 +31,3 @@ "use strict"; | ||
constructor() { | ||
this._config = _constants.DEFAULT_CONFIGS; | ||
this._config = (0, _constants.DEFAULT_CONFIGS)(); | ||
this._capabilities = []; | ||
@@ -34,0 +34,0 @@ } |
@@ -14,2 +14,4 @@ "use strict"; | ||
const DEFAULT_PROTOCOL = 'http'; | ||
const DEFAULT_PATH = '/'; | ||
const LEGACY_PATH = '/wd/hub'; | ||
const REGION_MAPPING = { | ||
@@ -55,3 +57,4 @@ 'us': '', | ||
region, | ||
headless | ||
headless, | ||
path | ||
} = options; | ||
@@ -63,3 +66,4 @@ | ||
hostname: hostname || 'hub-cloud.browserstack.com', | ||
port: port || 443 | ||
port: port || 443, | ||
path: path || LEGACY_PATH | ||
}; | ||
@@ -70,5 +74,6 @@ } | ||
return { | ||
protocol: protocol || DEFAULT_PROTOCOL, | ||
protocol: protocol || 'https', | ||
hostname: hostname || 'hub.testingbot.com', | ||
port: port || 80 | ||
port: port || 443, | ||
path: path || LEGACY_PATH | ||
}; | ||
@@ -82,3 +87,4 @@ } | ||
hostname: hostname || getSauceEndpoint(sauceRegion, isRDC), | ||
port: port || 443 | ||
port: port || 443, | ||
path: path || LEGACY_PATH | ||
}; | ||
@@ -94,3 +100,4 @@ } | ||
port: port || DEFAULT_PORT, | ||
protocol: protocol || DEFAULT_PROTOCOL | ||
protocol: protocol || DEFAULT_PROTOCOL, | ||
path: path || DEFAULT_PATH | ||
}; | ||
@@ -97,0 +104,0 @@ } |
{ | ||
"name": "@wdio/config", | ||
"version": "6.0.0-alpha.0", | ||
"version": "6.0.0-alpha.1", | ||
"description": "A helper utility to parse and validate WebdriverIO options", | ||
@@ -40,3 +40,3 @@ "author": "Christian Bromann <christian@saucelabs.com>", | ||
}, | ||
"gitHead": "834043765c1a803f3f6e784ca4599b02e92c6f5e" | ||
"gitHead": "1b11d192fa30cd92724a21e3febbf40b9e5b3ba2" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16112
401