@wdio/config
Advanced tools
Comparing version 8.33.1 to 9.0.0-alpha.0
@@ -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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
47741
1
979
1
+ Added@puppeteer/browsers@2.4.0(transitive)
+ Added@wdio/logger@9.0.0-alpha.0(transitive)
+ Added@wdio/types@9.0.0-alpha.0(transitive)
+ Added@wdio/utils@9.0.0-alpha.0(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addedms@2.1.3(transitive)
+ Addedproxy-agent@6.4.0(transitive)
+ Addedsemver@7.6.3(transitive)
- Removed@puppeteer/browsers@1.9.1(transitive)
- Removed@wdio/logger@8.28.0(transitive)
- Removed@wdio/types@8.32.4(transitive)
- Removed@wdio/utils@8.33.1(transitive)
- Removeddebug@4.3.4(transitive)
- Removedmkdirp-classic@0.5.3(transitive)
- Removedms@2.1.2(transitive)
- Removedproxy-agent@6.3.1(transitive)
- Removedtar-fs@3.0.4(transitive)
Updated@wdio/logger@9.0.0-alpha.0
Updated@wdio/types@9.0.0-alpha.0
Updated@wdio/utils@9.0.0-alpha.0