Socket
Socket
Sign inDemoInstall

@wdio/config

Package Overview
Dependencies
Maintainers
3
Versions
329
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.33.1 to 9.0.0-alpha.0

2

build/node/ConfigParser.d.ts

@@ -9,3 +9,3 @@ import type { Capabilities, Options, Services } from '@wdio/types';

suite?: string[];
multiRun?: number;
repeat?: number;
capabilities?: Capabilities.RemoteCapabilities;

@@ -12,0 +12,0 @@ rootDir: string;

@@ -36,2 +36,10 @@ import path from 'node:path';

}
/**
* the autoCompileOpts.autoCompile CLI argument has to be converted
* from type string to type boolean
*/
if (typeof _initialConfig.autoCompileOpts?.autoCompile === 'string') {
const strValue = _initialConfig.autoCompileOpts.autoCompile;
_initialConfig.autoCompileOpts.autoCompile = !!strValue && strValue !== 'false';
}
this.merge(_initialConfig, false);

@@ -230,3 +238,3 @@ }

const isSpecParamPassed = Array.isArray(this._config.spec) && this._config.spec.length > 0;
const multiRun = this._config.multiRun;
const repeat = this._config.repeat;
// when CLI --spec is explicitly specified, this._config.specs contains the filtered

@@ -268,10 +276,10 @@ // specs matching the passed pattern else the specs defined inside the config are returned

specs = [...new Set(specs)];
// If the --multi-run flag is set, duplicate the specs array N times
// Ensure that when --multi-run is used that either --spec or --suite is also used
// If the --repeat flag is set, duplicate the specs array N times
// Ensure that when --repeat is used that either --spec or --suite is also used
const hasSubsetOfSpecsDefined = isSpecParamPassed || suites.length > 0;
if (multiRun && hasSubsetOfSpecsDefined) {
specs = Array.from({ length: multiRun }, () => specs).flat();
if (repeat && hasSubsetOfSpecsDefined) {
specs = Array.from({ length: repeat }, () => specs).flat();
}
else if (multiRun && !hasSubsetOfSpecsDefined) {
throw new Error('The --multi-run flag requires that either the --spec or --suite flag is also set');
else if (repeat && !hasSubsetOfSpecsDefined) {
throw new Error('The --repeat flag requires that either the --spec or --suite flag is also set');
}

@@ -278,0 +286,0 @@ return this.shard(this.filterSpecs(specs, exclude));

import url from 'node:url';
import path from 'node:path';
import { access } from 'node:fs/promises';
import { resolve } from 'import-meta-resolve';

@@ -22,2 +23,4 @@ import logger from '@wdio/logger';

await resolve('ts-node', import.meta.url);
const loaderPath = await resolve('ts-node/esm/transpile-only.mjs', import.meta.url);
await access(new URL(loaderPath));
process.env.WDIO_LOAD_TS_NODE = '1';

@@ -24,0 +27,0 @@ objectToEnv(autoCompileConfig.tsNodeOpts);

{
"name": "@wdio/config",
"version": "8.33.1",
"version": "9.0.0-alpha.0",
"description": "A helper utility to parse and validate WebdriverIO options",

@@ -23,3 +23,3 @@ "author": "Christian Bromann <mail@bromann.dev>",

"engines": {
"node": "^16.13 || >=18"
"node": ">=18"
},

@@ -40,5 +40,5 @@ "repository": {

"dependencies": {
"@wdio/logger": "8.28.0",
"@wdio/types": "8.32.4",
"@wdio/utils": "8.33.1",
"@wdio/logger": "9.0.0-alpha.0",
"@wdio/types": "9.0.0-alpha.0",
"@wdio/utils": "9.0.0-alpha.0",
"decamelize": "^6.0.0",

@@ -53,6 +53,5 @@ "deepmerge-ts": "^5.0.0",

"devDependencies": {
"minimatch": "^9.0.0",
"tsconfig-paths": "^4.1.0"
"minimatch": "^9.0.0"
},
"gitHead": "6ee4cdd36e9f10541ede896d18b785ac9c56dacf"
"gitHead": "75d45a1efff8705785f0fbcd2379ac624d16e007"
}

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