@wdio/local-runner 7.13.0 → 7.16.0
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/index.js +1 -1
- package/build/run.js +2 -2
- package/build/stdStream.js +5 -5
- package/build/worker.js +3 -3
- package/package.json +7 -7
package/build/index.js
CHANGED
|
@@ -7,7 +7,7 @@ const logger_1 = __importDefault(require("@wdio/logger"));
|
|
|
7
7
|
const stream_buffers_1 = require("stream-buffers");
|
|
8
8
|
const worker_1 = __importDefault(require("./worker"));
|
|
9
9
|
const constants_1 = require("./constants");
|
|
10
|
-
const log = logger_1.default('@wdio/local-runner');
|
|
10
|
+
const log = (0, logger_1.default)('@wdio/local-runner');
|
|
11
11
|
class LocalRunner {
|
|
12
12
|
constructor(configFile, _config) {
|
|
13
13
|
this._config = _config;
|
package/build/run.js
CHANGED
|
@@ -8,7 +8,7 @@ const async_exit_hook_1 = __importDefault(require("async-exit-hook"));
|
|
|
8
8
|
const runner_1 = __importDefault(require("@wdio/runner"));
|
|
9
9
|
const logger_1 = __importDefault(require("@wdio/logger"));
|
|
10
10
|
const constants_1 = require("./constants");
|
|
11
|
-
const log = logger_1.default('@wdio/local-runner');
|
|
11
|
+
const log = (0, logger_1.default)('@wdio/local-runner');
|
|
12
12
|
exports.runner = new runner_1.default();
|
|
13
13
|
exports.runner.on('exit', process.exit.bind(process));
|
|
14
14
|
exports.runner.on('error', ({ name, message, stack }) => process.send({
|
|
@@ -45,4 +45,4 @@ const exitHookFn = (callback) => {
|
|
|
45
45
|
setTimeout(callback, constants_1.SHUTDOWN_TIMEOUT);
|
|
46
46
|
};
|
|
47
47
|
exports.exitHookFn = exitHookFn;
|
|
48
|
-
async_exit_hook_1.default(exports.exitHookFn);
|
|
48
|
+
(0, async_exit_hook_1.default)(exports.exitHookFn);
|
package/build/stdStream.js
CHANGED
|
@@ -9,11 +9,11 @@ class RunnerStream extends stream_1.Transform {
|
|
|
9
9
|
* Remove events that are automatically created by Writable stream
|
|
10
10
|
*/
|
|
11
11
|
this.on('pipe', () => {
|
|
12
|
-
utils_1.removeLastListener(this, 'close');
|
|
13
|
-
utils_1.removeLastListener(this, 'drain');
|
|
14
|
-
utils_1.removeLastListener(this, 'error');
|
|
15
|
-
utils_1.removeLastListener(this, 'finish');
|
|
16
|
-
utils_1.removeLastListener(this, 'unpipe');
|
|
12
|
+
(0, utils_1.removeLastListener)(this, 'close');
|
|
13
|
+
(0, utils_1.removeLastListener)(this, 'drain');
|
|
14
|
+
(0, utils_1.removeLastListener)(this, 'error');
|
|
15
|
+
(0, utils_1.removeLastListener)(this, 'finish');
|
|
16
|
+
(0, utils_1.removeLastListener)(this, 'unpipe');
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
_transform(chunk, encoding, callback) {
|
package/build/worker.js
CHANGED
|
@@ -10,7 +10,7 @@ const logger_1 = __importDefault(require("@wdio/logger"));
|
|
|
10
10
|
const transformStream_1 = __importDefault(require("./transformStream"));
|
|
11
11
|
const replQueue_1 = __importDefault(require("./replQueue"));
|
|
12
12
|
const stdStream_1 = __importDefault(require("./stdStream"));
|
|
13
|
-
const log = logger_1.default('@wdio/local-runner');
|
|
13
|
+
const log = (0, logger_1.default)('@wdio/local-runner');
|
|
14
14
|
const replQueue = new replQueue_1.default();
|
|
15
15
|
const stdOutStream = new stdStream_1.default();
|
|
16
16
|
const stdErrStream = new stdStream_1.default();
|
|
@@ -71,10 +71,10 @@ class WorkerInstance extends events_1.EventEmitter {
|
|
|
71
71
|
/* istanbul ignore if */
|
|
72
72
|
if (!process.env.JEST_WORKER_ID) {
|
|
73
73
|
if (childProcess.stdout !== null) {
|
|
74
|
-
transformStream_1.default(cid, childProcess.stdout).pipe(stdOutStream);
|
|
74
|
+
(0, transformStream_1.default)(cid, childProcess.stdout).pipe(stdOutStream);
|
|
75
75
|
}
|
|
76
76
|
if (childProcess.stderr !== null) {
|
|
77
|
-
transformStream_1.default(cid, childProcess.stderr).pipe(stdErrStream);
|
|
77
|
+
(0, transformStream_1.default)(cid, childProcess.stderr).pipe(stdErrStream);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
return childProcess;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/local-runner",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.16.0",
|
|
4
4
|
"description": "A WebdriverIO runner to run tests locally",
|
|
5
5
|
"author": "Christian Bromann <christian@saucelabs.com>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-local-runner",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@types/stream-buffers": "^3.0.3",
|
|
27
|
-
"@wdio/logger": "7.
|
|
28
|
-
"@wdio/repl": "7.
|
|
29
|
-
"@wdio/runner": "7.
|
|
30
|
-
"@wdio/types": "7.
|
|
27
|
+
"@wdio/logger": "7.16.0",
|
|
28
|
+
"@wdio/repl": "7.16.0",
|
|
29
|
+
"@wdio/runner": "7.16.0",
|
|
30
|
+
"@wdio/types": "7.16.0",
|
|
31
31
|
"async-exit-hook": "^2.0.1",
|
|
32
|
-
"split2": "^
|
|
32
|
+
"split2": "^4.0.0",
|
|
33
33
|
"stream-buffers": "^3.0.2"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"types": "./build/index.d.ts",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "2b650b1def58bc7a6c22cb093548c19e63b75f80"
|
|
43
43
|
}
|