@wdio/config
Advanced tools
Comparing version 8.26.3 to 8.27.0
@@ -10,2 +10,3 @@ const DEFAULT_TIMEOUT = 10000; | ||
logLevels: {}, | ||
groupLogsByTestSpec: false, | ||
excludeDriverLogs: [], | ||
@@ -12,0 +13,0 @@ bail: 0, |
@@ -46,2 +46,3 @@ import type { Capabilities, Options, Services } from '@wdio/types'; | ||
* @param {Object} object desired object to merge into the config object | ||
* @param {boolean} [addPathToSpecs=true] this flag determines whether it is necessary to find paths to specs if the --spec parameter was passed in CLI | ||
*/ | ||
@@ -48,0 +49,0 @@ private merge; |
@@ -36,3 +36,3 @@ import path from 'node:path'; | ||
} | ||
this.merge(_initialConfig); | ||
this.merge(_initialConfig, false); | ||
} | ||
@@ -124,4 +124,5 @@ /** | ||
* @param {Object} object desired object to merge into the config object | ||
* @param {boolean} [addPathToSpecs=true] this flag determines whether it is necessary to find paths to specs if the --spec parameter was passed in CLI | ||
*/ | ||
merge(object = {}) { | ||
merge(object = {}, addPathToSpecs = true) { | ||
const spec = Array.isArray(object.spec) ? object.spec : []; | ||
@@ -161,6 +162,6 @@ const exclude = Array.isArray(object.exclude) ? object.exclude : []; | ||
*/ | ||
if (spec.length > 0) { | ||
if (addPathToSpecs && spec.length > 0) { | ||
this._config.specs = this.setFilePathToFilterOptions(spec, this._config.specs); | ||
} | ||
if (exclude.length > 0) { | ||
if (addPathToSpecs && exclude.length > 0) { | ||
this._config.exclude = this.setFilePathToFilterOptions(exclude, this._config.exclude); | ||
@@ -167,0 +168,0 @@ } |
{ | ||
"name": "@wdio/config", | ||
"version": "8.26.3", | ||
"version": "8.27.0", | ||
"description": "A helper utility to parse and validate WebdriverIO options", | ||
@@ -40,4 +40,4 @@ "author": "Christian Bromann <mail@bromann.dev>", | ||
"@wdio/logger": "8.24.12", | ||
"@wdio/types": "8.26.3", | ||
"@wdio/utils": "8.26.3", | ||
"@wdio/types": "8.27.0", | ||
"@wdio/utils": "8.27.0", | ||
"decamelize": "^6.0.0", | ||
@@ -55,3 +55,3 @@ "deepmerge-ts": "^5.0.0", | ||
}, | ||
"gitHead": "284ce5591d90d9ea5f591e977d04557fd9ec4011" | ||
"gitHead": "be6dce3344ac864509f676b561cb0eed821b36f6" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
45164
929
+ Added@wdio/types@8.27.0(transitive)
+ Added@wdio/utils@8.27.0(transitive)
- Removed@wdio/types@8.26.3(transitive)
- Removed@wdio/utils@8.26.3(transitive)
Updated@wdio/types@8.27.0
Updated@wdio/utils@8.27.0