Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix: do not override console object in worker (#14455)
Yury Semikhatsky9f4716067319
diff --git a/packages/playwright-test/src/worker.ts b/packages/playwright-test/src/worker.tsindex 16f10f7948..89d8af800e 100644--- a/packages/playwright-test/src/worker.ts+++ b/packages/playwright-test/src/worker.ts@@ -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,