mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix: do not override console object in worker (#14455)
This commit is contained in:
parent
c1aecc7d50
commit
9f47160673
@ -14,7 +14,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Console } from 'console';
|
||||
import * as util from 'util';
|
||||
import type { RunPayload, TeardownErrorsPayload, TestOutputPayload, WorkerInitParams } from './ipc';
|
||||
import { startProfiling, stopProfiling } from './profiler';
|
||||
@ -25,12 +24,6 @@ let closed = false;
|
||||
|
||||
sendMessageToParent('ready');
|
||||
|
||||
global.console = new Console({
|
||||
stdout: process.stdout,
|
||||
stderr: process.stderr,
|
||||
colorMode: process.env.FORCE_COLOR === '1',
|
||||
});
|
||||
|
||||
process.stdout.write = (chunk: string | Buffer) => {
|
||||
const outPayload: TestOutputPayload = {
|
||||
testId: workerRunner?._currentTest?._test._id,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user