Skip to content

fix: pass --port correctly to vite in playwright webServer config#387

Closed
andyparsons wants to merge 2 commits into
mainfrom
fix/playwright-pnpm-port-flag
Closed

fix: pass --port correctly to vite in playwright webServer config#387
andyparsons wants to merge 2 commits into
mainfrom
fix/playwright-pnpm-port-flag

Conversation

@andyparsons
Copy link
Copy Markdown
Collaborator

Summary

  • pnpm dev --port=N breaks in pnpm v10 because pnpm intercepts flags before passing them to the script, emitting "Unknown option: port"
  • Fixed by splitting the command: run hash-pem first (needed to generate static/trust/allowed.sha256.txt), then invoke vite directly via pnpm exec vite dev --port=N so the flag reaches vite

Test plan

  • Run pnpm test:e2e locally — confirm the WebServer no longer errors on startup and vite binds to the expected port

🤖 Generated with Claude Code

andyparsons and others added 2 commits May 1, 2026 16:23
pnpm v10 intercepts flags before the script, so `pnpm dev --port=N`
errors with "Unknown option: port". Split the command to run hash-pem
first, then invoke vite directly via pnpm exec so --port reaches vite.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment out Playwright related steps in the CI workflow.
@andyparsons andyparsons closed this May 1, 2026
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.

1 participant