Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wdio/config

Package Overview
Dependencies
Maintainers
3
Versions
336
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wdio/config - npm Package Compare versions

Comparing version 8.26.3 to 8.27.0

1

build/constants.js

@@ -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;

9

build/node/ConfigParser.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc