@wdio/local-runner 8.16.16 → 8.16.18
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.
- package/build/worker.d.ts.map +1 -1
- package/build/worker.js +9 -0
- package/package.json +4 -4
package/build/worker.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../src/worker.ts"],"names":[],"mappings":";;AAEA,OAAO,KAAK,MAAM,oBAAoB,CAAA;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../src/worker.ts"],"names":[],"mappings":";;AAEA,OAAO,KAAK,MAAM,oBAAoB,CAAA;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAsBjE;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,YAAa,YAAW,OAAO,CAAC,MAAM;IAC9E,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,OAAO,CAAC,UAAU,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAElB,IAAI,EAAE,YAAY,CAAC,gBAAgB,CAAA;IAEnC,YAAY,EAAE,YAAY,CAAC,gBAAgB,CAAA;IAC3C,KAAK,EAAE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@ -14,6 +14,9 @@ const stdOutStream = new RunnerStream();
|
|
|
14
14
|
const stdErrStream = new RunnerStream();
|
|
15
15
|
stdOutStream.pipe(process.stdout);
|
|
16
16
|
stdErrStream.pipe(process.stderr);
|
|
17
|
+
function nodeMajorVersion() {
|
|
18
|
+
return process.versions.node.split('.').map(Number)[0];
|
|
19
|
+
}
|
|
17
20
|
/**
|
|
18
21
|
* WorkerInstance
|
|
19
22
|
* responsible for spawning a sub process to run the framework in and handle its
|
|
@@ -94,6 +97,12 @@ export default class WorkerInstance extends EventEmitter {
|
|
|
94
97
|
*/
|
|
95
98
|
!(process.env.NODE_OPTIONS || '').includes('--loader ts-node/esm')) {
|
|
96
99
|
runnerEnv.NODE_OPTIONS = (runnerEnv.NODE_OPTIONS || '') + ' --loader ts-node/esm/transpile-only --no-warnings';
|
|
100
|
+
if (nodeMajorVersion() >= 20) {
|
|
101
|
+
// Changes in Node 20 affect how TS Node works with source maps, hence the need for this workaround. See:
|
|
102
|
+
// - https://github.com/webdriverio/webdriverio/issues/10901
|
|
103
|
+
// - https://github.com/TypeStrong/ts-node/issues/2053
|
|
104
|
+
runnerEnv.NODE_OPTIONS += ' -r ts-node/register';
|
|
105
|
+
}
|
|
97
106
|
}
|
|
98
107
|
log.info(`Start worker ${cid} with arg: ${argv}`);
|
|
99
108
|
const childProcess = this.childProcess = child.fork(path.join(__dirname, 'run.js'), argv, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/local-runner",
|
|
3
|
-
"version": "8.16.
|
|
3
|
+
"version": "8.16.18",
|
|
4
4
|
"description": "A WebdriverIO runner to run tests locally",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-local-runner",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"typeScriptVersion": "3.8.3",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@types/node": "^20.1.0",
|
|
34
|
-
"@wdio/logger": "8.
|
|
34
|
+
"@wdio/logger": "8.16.17",
|
|
35
35
|
"@wdio/repl": "8.10.1",
|
|
36
|
-
"@wdio/runner": "8.16.
|
|
36
|
+
"@wdio/runner": "8.16.18",
|
|
37
37
|
"@wdio/types": "8.16.12",
|
|
38
38
|
"async-exit-hook": "^2.0.1",
|
|
39
39
|
"split2": "^4.1.0",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "2045bb85cbd7323d130d1458c75aba550f29f544"
|
|
50
50
|
}
|