Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: pass playwright.env config to all node calls #301

Merged
merged 7 commits into from
Apr 5, 2023

Conversation

chasestarr
Copy link
Contributor

This will support pnp package managers (yarn 2, pnpm) by allowing NODE_OPTIONS to be configured within playwright.env and passed to node calls. For example, when using yarn 2 I can edit my .vscode/settings.json file to below and register the pnp.cjs file.

{
  "playwright": {
    "env": {
      "NODE_OPTIONS": "-r ./.pnp.cjs"
    }
  }
}

@chasestarr
Copy link
Contributor Author

@microsoft-github-policy-service agree company="Uber"

@chasestarr
Copy link
Contributor Author

Hi, checking in again. Is this something the team is interested in reviewing?

@chasestarr
Copy link
Contributor Author

Hi, politely bumping again. I'm happy to make any changes if requested

src/playwrightTest.ts Outdated Show resolved Hide resolved
src/playwrightTest.ts Outdated Show resolved Hide resolved
@mxschmitt
Copy link
Member

mxschmitt commented Apr 5, 2023

Thanks for your PR, after the requested changes we're happy to add it. Sorry for the slow response so far!

@chasestarr
Copy link
Contributor Author

Resolved the change requests. Thanks!

@mxschmitt mxschmitt changed the title Pass playwright.env config to node calls chore: pass playwright.env config to all node calls Apr 5, 2023
@mxschmitt mxschmitt merged commit 5160255 into microsoft:main Apr 5, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants