Closed zetaraku closed 4 months ago
When running Playwright end-to-end testing from Playwright Test for VSCode, an error is thrown:
Error: Process from config.webServer was not able to start. Exit code: 1
This is probably because the extension runs without adding node_modules/.bin to PATH like npm run does.
node_modules/.bin
PATH
npm run
This PR uses npm run to start the server and adjusts the port according to the default port of vite dev or vite preview.
port
vite dev
vite preview
Description
When running Playwright end-to-end testing from Playwright Test for VSCode, an error is thrown:
This is probably because the extension runs without adding
node_modules/.bin
toPATH
likenpm run
does.What this PR does
This PR uses
npm run
to start the server and adjusts theport
according to the default port ofvite dev
orvite preview
.