@wdio/config
Advanced tools
Comparing version 5.15.0 to 5.15.1
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.SUPPORTED_HOOKS = exports.DEFAULT_CONFIGS = void 0; | ||
exports.NON_WORKER_SERVICES = exports.SUPPORTED_HOOKS = exports.DEFAULT_CONFIGS = void 0; | ||
const DEFAULT_TIMEOUT = 10000; | ||
@@ -64,2 +64,4 @@ const DEFAULT_CONFIGS = { | ||
const SUPPORTED_HOOKS = ['before', 'beforeSession', 'beforeSuite', 'beforeHook', 'beforeTest', 'beforeCommand', 'afterCommand', 'afterTest', 'afterHook', 'afterSuite', 'afterSession', 'after', 'beforeFeature', 'beforeScenario', 'beforeStep', 'afterStep', 'afterScenario', 'afterFeature', 'onReload', 'onPrepare', 'onComplete']; | ||
exports.SUPPORTED_HOOKS = SUPPORTED_HOOKS; | ||
exports.SUPPORTED_HOOKS = SUPPORTED_HOOKS; | ||
const NON_WORKER_SERVICES = ['chromedriver', 'selenium-standalone', 'appium', 'reportportal', 'firefox-profile']; | ||
exports.NON_WORKER_SERVICES = NON_WORKER_SERVICES; |
@@ -58,2 +58,3 @@ "use strict"; | ||
this._config = (0, _deepmerge.default)((0, _utils.detectBackend)(this._config, isRDC), this._config, MERGE_OPTIONS); | ||
delete this._config.watch; | ||
} catch (e) { | ||
@@ -227,4 +228,14 @@ log.error(`Failed loading configuration file: ${filePath}:`, e.message); | ||
filterWorkerServices() { | ||
if (!Array.isArray(this._config.services)) { | ||
return; | ||
} | ||
this._config.services = this._config.services.filter(service => { | ||
return !_constants.NON_WORKER_SERVICES.includes(service); | ||
}); | ||
} | ||
} | ||
exports.default = ConfigParser; |
{ | ||
"name": "@wdio/config", | ||
"version": "5.15.0", | ||
"version": "5.15.1", | ||
"description": "A helper utility to parse and validate WebdriverIO options", | ||
@@ -40,3 +40,3 @@ "author": "Christian Bromann <christian@saucelabs.com>", | ||
}, | ||
"gitHead": "f49384dd159bbd308c70db1c119499b774c95f75" | ||
"gitHead": "03d712f71c7df07873b72dd3d7d19f08d8c00dc9" | ||
} |
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
14850
370