@wdio/config
Advanced tools
Comparing version 5.9.0 to 5.9.1
@@ -198,4 +198,14 @@ "use strict"; | ||
const tmpSpecs = spec.length > 0 ? [...specs, ...suiteSpecs] : suiteSpecs; | ||
return [...new Set(tmpSpecs)]; | ||
let tmpSpecs = spec.length > 0 ? [...specs, ...suiteSpecs] : suiteSpecs; | ||
if (Array.isArray(capSpecs)) { | ||
tmpSpecs = tmpSpecs.concat(ConfigParser.getFilePaths(capSpecs)); | ||
} | ||
if (Array.isArray(capExclude)) { | ||
exclude = exclude.concat(ConfigParser.getFilePaths(capExclude)); | ||
} | ||
specs = [...new Set(tmpSpecs)]; | ||
return specs.filter(spec => !exclude.includes(spec)); | ||
} | ||
@@ -211,3 +221,3 @@ | ||
return specs.filter(spec => exclude.indexOf(spec) < 0); | ||
return specs.filter(spec => !exclude.includes(spec)); | ||
} | ||
@@ -214,0 +224,0 @@ /** |
{ | ||
"name": "@wdio/config", | ||
"version": "5.9.0", | ||
"version": "5.9.1", | ||
"description": "A helper utility to parse and validate WebdriverIO options", | ||
@@ -40,3 +40,3 @@ "author": "Christian Bromann <christian@saucelabs.com>", | ||
}, | ||
"gitHead": "6339dc411df997530375eda47b8a4b735bcd6c2c" | ||
"gitHead": "575883b611fde854fae80830e91417d88838aa50" | ||
} |
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
20863
583