@wdio/config
Advanced tools
Comparing version 8.31.0 to 8.31.1
@@ -15,3 +15,5 @@ import type { Capabilities, Options, Services } from '@wdio/types'; | ||
specs?: Spec[]; | ||
'wdio:specs'?: Spec[]; | ||
exclude?: string[]; | ||
'wdio:exclude'?: string[]; | ||
} | ||
@@ -18,0 +20,0 @@ export default class ConfigParser { |
@@ -130,8 +130,15 @@ import path from 'node:path'; | ||
/** | ||
* overwrite config specs that got piped into the wdio command | ||
* overwrite config specs that got piped into the wdio command, | ||
* also adhering to the wdio-prefixes from a capability | ||
*/ | ||
if (object.specs && object.specs.length > 0) { | ||
if (object['wdio:specs'] && object['wdio:specs'].length > 0) { | ||
this._config.specs = object['wdio:specs']; | ||
} | ||
else if (object.specs && object.specs.length > 0) { | ||
this._config.specs = object.specs; | ||
} | ||
if (object.exclude && object.exclude.length > 0) { | ||
if (object['wdio:exclude'] && object['wdio:exclude'].length > 0) { | ||
this._config.exclude = object['wdio:exclude']; | ||
} | ||
else if (object.exclude && object.exclude.length > 0) { | ||
this._config.exclude = object.exclude; | ||
@@ -138,0 +145,0 @@ } |
{ | ||
"name": "@wdio/config", | ||
"version": "8.31.0", | ||
"version": "8.31.1", | ||
"description": "A helper utility to parse and validate WebdriverIO options", | ||
@@ -40,4 +40,4 @@ "author": "Christian Bromann <mail@bromann.dev>", | ||
"@wdio/logger": "8.28.0", | ||
"@wdio/types": "8.31.0", | ||
"@wdio/utils": "8.31.0", | ||
"@wdio/types": "8.31.1", | ||
"@wdio/utils": "8.31.1", | ||
"decamelize": "^6.0.0", | ||
@@ -55,3 +55,3 @@ "deepmerge-ts": "^5.0.0", | ||
}, | ||
"gitHead": "3d44631bdcb332238b29aa0859dae7b335e51f89" | ||
"gitHead": "6e8c6f8013df7a9abf4be69934a9e88ba2dc6268" | ||
} |
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
47198
968
+ Added@wdio/types@8.31.1(transitive)
+ Added@wdio/utils@8.31.1(transitive)
- Removed@wdio/types@8.31.0(transitive)
- Removed@wdio/utils@8.31.0(transitive)
Updated@wdio/types@8.31.1
Updated@wdio/utils@8.31.1