You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to change the port of browser mode, in order to run multiple browser tests in a workspace (One for storybook, one for unit tests).
I tried to specify the server.port, but it's merged and gone here:
It would be nice to have ability to change the port number.
Suggested solution
Recognize server.port in the argument of defineWorkspace.
Create test.browser.serverPort option.
Alternative
None, I guess
Additional context
For anyone want to change port now (workaround):
// Vitest doesn't recognize server.port, so we modify it using a plugin// ref: https://github.com/vitest-dev/vitest/issues/6677constportChangerPlugin=(port: number): Plugin=>({name: "port-changer",config(){return{server: {
port,},};},});
Clear and concise description of the problem
I'd like to change the port of browser mode, in order to run multiple browser tests in a workspace (One for storybook, one for unit tests).
I tried to specify the
server.port
, but it's merged and gone here:vitest/packages/browser/src/node/index.ts
Lines 58 to 61 in 11b9432
It would be nice to have ability to change the port number.
Suggested solution
server.port
in the argument ofdefineWorkspace
.test.browser.serverPort
option.Alternative
None, I guess
Additional context
For anyone want to change port now (workaround):
Validations
The text was updated successfully, but these errors were encountered: