@wdio/config 5.9.0 → 5.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lib/ConfigParser.js +13 -3
- package/package.json +2 -2
|
@@ -195,8 +195,18 @@ class ConfigParser {
|
|
|
195
195
|
// Removing any duplicate tests that could be included
|
|
196
196
|
|
|
197
197
|
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
let tmpSpecs = spec.length > 0 ? [...specs, ...suiteSpecs] : suiteSpecs;
|
|
199
|
+
|
|
200
|
+
if (Array.isArray(capSpecs)) {
|
|
201
|
+
tmpSpecs = tmpSpecs.concat(ConfigParser.getFilePaths(capSpecs));
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
if (Array.isArray(capExclude)) {
|
|
205
|
+
exclude = exclude.concat(ConfigParser.getFilePaths(capExclude));
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
specs = [...new Set(tmpSpecs)];
|
|
209
|
+
return specs.filter(spec => !exclude.includes(spec));
|
|
200
210
|
}
|
|
201
211
|
|
|
202
212
|
if (Array.isArray(capSpecs)) {
|
|
@@ -207,7 +217,7 @@ class ConfigParser {
|
|
|
207
217
|
exclude = exclude.concat(ConfigParser.getFilePaths(capExclude));
|
|
208
218
|
}
|
|
209
219
|
|
|
210
|
-
return specs.filter(spec => exclude.
|
|
220
|
+
return specs.filter(spec => !exclude.includes(spec));
|
|
211
221
|
}
|
|
212
222
|
/**
|
|
213
223
|
* sets config attribute with file paths from filtering
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/config",
|
|
3
|
-
"version": "5.9.
|
|
3
|
+
"version": "5.9.1",
|
|
4
4
|
"description": "A helper utility to parse and validate WebdriverIO options",
|
|
5
5
|
"author": "Christian Bromann <christian@saucelabs.com>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/master/packages/wdio-config",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "575883b611fde854fae80830e91417d88838aa50"
|
|
41
41
|
}
|