Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(test): import EventEmitter from 'events', not 'stream' (#40872)

Aleksandr Sakhatskii780f941f0eec
diff --git a/packages/playwright/src/runner/watchMode.ts b/packages/playwright/src/runner/watchMode.ts
index 706a7ceb39..c04413c5f9 100644
--- a/packages/playwright/src/runner/watchMode.ts
+++ b/packages/playwright/src/runner/watchMode.ts
@@ -16,7 +16,7 @@
import path from 'path';
import readline from 'readline';
-import { EventEmitter } from 'stream';
+import { EventEmitter } from 'events';
import { remote } from 'playwright-core/lib/coreBundle';
import colors from 'colors/safe';