@wdio/cli 8.0.0-alpha.577 → 8.0.0-alpha.593
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":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,oBAAoB,CAAA;AACnC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAEnD,eAAO,MAAM,OAAO,qBAAqB,CAAA;AAEzC,eAAO,MAAM,IAAI,yEAAyE,CAAA;AAE1F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFV,CAAA;AAEV,eAAO,MAAM,OAAO,UAAW,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,oBAAoB,CAAA;AACnC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAEnD,eAAO,MAAM,OAAO,qBAAqB,CAAA;AAEzC,eAAO,MAAM,IAAI,yEAAyE,CAAA;AAE1F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFV,CAAA;AAEV,eAAO,MAAM,OAAO,UAAW,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUlC,CAAA;AAED,wBAAgB,eAAe,CAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,QAc1F;AAED,wBAAsB,MAAM,CAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,mCAyDvF;AAED,wBAAsB,OAAO,CAAE,IAAI,EAAE,mBAAmB,mCA0CvD"}
|
package/build/commands/run.js
CHANGED
|
@@ -96,6 +96,7 @@ export const builder = (yargs) => {
|
|
|
96
96
|
.example('$0 run wdio.conf.js --spec ./tests/e2e/a.js --spec ./tests/e2e/b.js', 'Run suite on specific specs')
|
|
97
97
|
.example('$0 run wdio.conf.js --mochaOpts.timeout 60000', 'Run suite with custom Mocha timeout')
|
|
98
98
|
.example('$0 run wdio.conf.js --autoCompileOpts.autoCompile=false', 'Disable auto-loading of ts-node or @babel/register')
|
|
99
|
+
.example('$0 run wdio.conf.js --autoCompileOpts.tsNodeOpts.project=./configs/bdd-tsconfig.json', 'Run suite with ts-node using custom tsconfig.json')
|
|
99
100
|
.epilogue(CLI_EPILOGUE)
|
|
100
101
|
.help();
|
|
101
102
|
};
|
|
@@ -125,7 +126,9 @@ export async function launch(wdioConfPath, params) {
|
|
|
125
126
|
NODE_OPTIONS?.includes('ts-node/esm'));
|
|
126
127
|
if (wdioConfPath.endsWith('.ts') && !runsWithLoader && nodePath) {
|
|
127
128
|
NODE_OPTIONS += ' --loader ts-node/esm/transpile-only --no-warnings';
|
|
128
|
-
const localTSConfigPath =
|
|
129
|
+
const localTSConfigPath = ((params.autoCompileOpts?.tsNodeOpts?.project &&
|
|
130
|
+
path.resolve(process.cwd(), params.autoCompileOpts?.tsNodeOpts?.project)) ||
|
|
131
|
+
path.join(path.dirname(wdioConfPath), 'tsconfig.json'));
|
|
129
132
|
const hasLocalTSConfig = await fs.access(localTSConfigPath).then(() => true, () => false);
|
|
130
133
|
const tsProcess = cp.spawn(nodePath, process.argv.slice(1), {
|
|
131
134
|
cwd: process.cwd(),
|
|
@@ -10,7 +10,7 @@ export const config: Options.Testrunner = {<%
|
|
|
10
10
|
// ====================
|
|
11
11
|
// Runner Configuration
|
|
12
12
|
// ====================
|
|
13
|
-
if(answers.expEnvAccessKey){ %>
|
|
13
|
+
<% if(answers.expEnvAccessKey){ %>
|
|
14
14
|
hostname: '<%- answers.expEnvHostname %>',
|
|
15
15
|
<% if (answers.expEnvPort === '443'){%>protocol: 'https',
|
|
16
16
|
<%} else if (answers.expEnvPort === '80'){%>protocol: 'http',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/cli",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.593+1844805fe",
|
|
4
4
|
"description": "WebdriverIO testrunner command line interface",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-cli",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"@types/lodash.union": "^4.6.7",
|
|
41
41
|
"@types/recursive-readdir": "^2.2.1",
|
|
42
42
|
"@types/yargs": "^17.0.10",
|
|
43
|
-
"@wdio/config": "8.0.0-alpha.
|
|
44
|
-
"@wdio/globals": "8.0.0-alpha.
|
|
45
|
-
"@wdio/logger": "8.0.0-alpha.
|
|
46
|
-
"@wdio/protocols": "8.0.0-alpha.
|
|
47
|
-
"@wdio/types": "8.0.0-alpha.
|
|
48
|
-
"@wdio/utils": "8.0.0-alpha.
|
|
43
|
+
"@wdio/config": "8.0.0-alpha.593+1844805fe",
|
|
44
|
+
"@wdio/globals": "8.0.0-alpha.593+1844805fe",
|
|
45
|
+
"@wdio/logger": "8.0.0-alpha.593+1844805fe",
|
|
46
|
+
"@wdio/protocols": "8.0.0-alpha.593+1844805fe",
|
|
47
|
+
"@wdio/types": "8.0.0-alpha.593+1844805fe",
|
|
48
|
+
"@wdio/utils": "8.0.0-alpha.593+1844805fe",
|
|
49
49
|
"async-exit-hook": "^2.0.1",
|
|
50
50
|
"chalk": "^5.0.1",
|
|
51
51
|
"chokidar": "^3.5.3",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"lodash.union": "^4.6.0",
|
|
59
59
|
"mkdirp": "^1.0.4",
|
|
60
60
|
"recursive-readdir": "^2.2.2",
|
|
61
|
-
"webdriverio": "8.0.0-alpha.
|
|
61
|
+
"webdriverio": "8.0.0-alpha.593+1844805fe",
|
|
62
62
|
"yargs": "^17.5.1",
|
|
63
63
|
"yarn-install": "^1.0.0"
|
|
64
64
|
},
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/node": "^18.0.0"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "1844805fe3b4dd68bd2f0f4139a39adc2ab2718e"
|
|
72
72
|
}
|