@wdio/config 7.20.3 → 7.20.8
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigParser.d.ts","sourceRoot":"","sources":["../../src/lib/ConfigParser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAWlE,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAKjE,aAAK,IAAI,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;AAE7B,UAAU,+BAAgC,SAAQ,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,cAAc,CAAC;IACtF,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,YAAY,CAAC,EAAE,YAAY,CAAC,kBAAkB,CAAA;CACjD;AAED,UAAU,WAAY,SAAQ,IAAI,CAAC,OAAO,CAAC,+BAA+B,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7F,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACrB;AAED,MAAM,CAAC,OAAO,OAAO,YAAY;IAKzB,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,qBAAqB;IALjC,OAAO,CAAC,OAAO,CAAqD;IACpE,OAAO,CAAC,aAAa,CAAsC;gBAG/C,YAAY,GAAE,WAAyC,EACvD,qBAAqB,GAAE,oBAA2C;
|
|
1
|
+
{"version":3,"file":"ConfigParser.d.ts","sourceRoot":"","sources":["../../src/lib/ConfigParser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;A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;;;;;OAQG;IACH,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,YAAY,CAAC,EAAE,OAAO,EAAE,WAAW,GAAE,WAAyC,EAAE,cAAc,CAAC,EAAE,MAAM;IAgD7I;;;;;;OAMG;IACH,WAAW,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;CAU/C"}
|
|
@@ -178,20 +178,26 @@ class ConfigParser {
|
|
|
178
178
|
// Allow --suite and --spec to both be defined on the command line
|
|
179
179
|
// Removing any duplicate tests that could be included
|
|
180
180
|
let tmpSpecs = spec.length > 0 ? [...specs, ...suiteSpecs] : suiteSpecs;
|
|
181
|
+
//Only merge capability specs if --spec is not defined
|
|
182
|
+
if (spec.length === 0) {
|
|
183
|
+
if (Array.isArray(capSpecs)) {
|
|
184
|
+
tmpSpecs = ConfigParser.getFilePaths(capSpecs, undefined, this._pathService);
|
|
185
|
+
}
|
|
186
|
+
if (Array.isArray(capExclude)) {
|
|
187
|
+
exclude = ConfigParser.getFilePaths(capExclude, undefined, this._pathService);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
specs = [...new Set(tmpSpecs)];
|
|
191
|
+
return this.filterSpecs(specs, exclude);
|
|
192
|
+
}
|
|
193
|
+
//Only merge capability specs if --spec is not defined
|
|
194
|
+
if (spec.length === 0) {
|
|
181
195
|
if (Array.isArray(capSpecs)) {
|
|
182
|
-
|
|
196
|
+
specs = ConfigParser.getFilePaths(capSpecs, undefined, this._pathService);
|
|
183
197
|
}
|
|
184
198
|
if (Array.isArray(capExclude)) {
|
|
185
199
|
exclude = ConfigParser.getFilePaths(capExclude, undefined, this._pathService);
|
|
186
200
|
}
|
|
187
|
-
specs = [...new Set(tmpSpecs)];
|
|
188
|
-
return this.filterSpecs(specs, exclude);
|
|
189
|
-
}
|
|
190
|
-
if (Array.isArray(capSpecs)) {
|
|
191
|
-
specs = ConfigParser.getFilePaths(capSpecs, undefined, this._pathService);
|
|
192
|
-
}
|
|
193
|
-
if (Array.isArray(capExclude)) {
|
|
194
|
-
exclude = ConfigParser.getFilePaths(capExclude, undefined, this._pathService);
|
|
195
201
|
}
|
|
196
202
|
return this.filterSpecs(specs, exclude);
|
|
197
203
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/config",
|
|
3
|
-
"version": "7.20.
|
|
3
|
+
"version": "7.20.8",
|
|
4
4
|
"description": "A helper utility to parse and validate WebdriverIO options",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-config",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"types": "./build/index.d.ts",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@wdio/logger": "7.19.0",
|
|
27
|
-
"@wdio/types": "7.20.
|
|
28
|
-
"@wdio/utils": "7.20.
|
|
27
|
+
"@wdio/types": "7.20.7",
|
|
28
|
+
"@wdio/utils": "7.20.7",
|
|
29
29
|
"deepmerge": "^4.0.0",
|
|
30
30
|
"glob": "^8.0.3"
|
|
31
31
|
},
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"minimatch": "^5.0.0",
|
|
37
|
-
"tsconfig-paths": "^
|
|
37
|
+
"tsconfig-paths": "^4.0.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "8ea0ee903b02157b9ee511c8750be2282b4f4519"
|
|
40
40
|
}
|