Skip to content
Discussion options

You must be logged in to vote

Configuring those should be possible via https://vitest.dev/config/browser.html#browser-api https://vitest.dev/config/browser/api.html#browser-api.

## browser.api

- **Type:** `number | { port?, strictPort?, host? }`
- **Default:** `63315`
- **CLI:** `--browser.api=63315`, `--browser.api.port=1234, --browser.api.host=example.com`

Configure options for Vite server that serves code in the browser. Does not affect [`test.api`](#api) option. By default, Vitest assigns port `63315` to avoid conflicts with the development server, allowing you to run both in parallel.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@PaddyDrury
Comment options

@AriPerkkio
Comment options

Answer selected by PaddyDrury
@sheremet-va
Comment options

@PaddyDrury
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants