Description
🚀 Feature Request
According to Electron, production applications support overriding two options in NODE_OPTIONS
:
--max-http-header-size
--http-parser
This is not supported by Playwright when launching Electron application. I know the feature is experimental, but it is a feature we would greatly appreciate, using environment variable NODE_OPTIONS
on process/ sent in via env
.
According to the code at https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/server/electron/electron.ts#L212:
// When debugging Playwright test that runs Electron, NODE_OPTIONS
// will make the debugger attach to Electron's Node. But Playwright
// also needs to attach to drive the automation. Disable external debugging.
delete env.NODE_OPTIONS;
Could you find another way to override attaching debugger to drive the automation?
Example
No response
Motivation
This would align Playwrights API more to Electrons API and give developers the ability to test production applications with NODE_OPTIONS set.