@wdio/utils
Advanced tools
Comparing version 8.16.9 to 8.16.10
@@ -8,2 +8,3 @@ import fs from 'node:fs'; | ||
import logger from '@wdio/logger'; | ||
import split2 from 'split2'; | ||
import { deepmerge } from 'deepmerge-ts'; | ||
@@ -127,4 +128,4 @@ import { start as startSafaridriver } from 'safaridriver'; | ||
} | ||
const logIdentifier = driver.split(' ').shift()?.toLowerCase() || 'driver'; | ||
if (options.outputDir) { | ||
const logIdentifier = driver.split(' ').shift()?.toLowerCase(); | ||
const logFileName = process.env.WDIO_WORKER_ID | ||
@@ -138,2 +139,7 @@ ? `wdio-${process.env.WDIO_WORKER_ID}-${logIdentifier}.log` | ||
} | ||
else { | ||
const driverLog = logger(logIdentifier); | ||
driverProcess.stdout?.pipe(split2()).on('data', driverLog.info.bind(driverLog)); | ||
driverProcess.stderr?.pipe(split2()).on('data', driverLog.warn.bind(driverLog)); | ||
} | ||
await waitPort({ port, output: 'silent', timeout: DRIVER_WAIT_TIMEOUT }) | ||
@@ -140,0 +146,0 @@ .catch((e) => { throw new Error(`Timed out to connect to ${driver}: ${e.message}`); }); |
{ | ||
"name": "@wdio/utils", | ||
"version": "8.16.9", | ||
"version": "8.16.10", | ||
"description": "A WDIO helper utility to provide several utility functions used across the project.", | ||
@@ -45,2 +45,3 @@ "author": "Christian Bromann <mail@bromann.dev>", | ||
"safaridriver": "^0.1.0", | ||
"split2": "^4.2.0", | ||
"wait-port": "^1.0.4" | ||
@@ -51,3 +52,3 @@ }, | ||
}, | ||
"gitHead": "a94335c7a66b9d4c792f0ae55a854f2c8b68e26d" | ||
"gitHead": "9d1c1c5604b4ca2f7ea24c84111bf87d0b4f580a" | ||
} |
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
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
149135
3090
14
+ Addedsplit2@^4.2.0
+ Addedsplit2@4.2.0(transitive)