microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
66.49k stars 3.64k forks source link

The VSCode extension does not recognize playwright.config.js in node_modules folder #33286

Closed PeterMa9621 closed 2 hours ago

PeterMa9621 commented 3 hours ago

Please do not submit this issue.

PeterMa9621 commented 3 hours ago

My playwright.config.js file lives in one of dependency's package under the node_modules/package.

I tried to update the following in settings.json:

"playwright.env": { "testConfigFile": path to the node_modules playwright config }.

But it didn't work.

I also tried setting up https://playwright.dev/docs/getting-started-vscode#multiple-configurations, but it's unable to find the playwright.config.js inside node_modules.

Any suggestion is appropriated. Thanks in advanced. ❤

mxschmitt commented 2 hours ago

This is expected, we recommend moving the playwright.config.js out of node_modules.