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
Copy file name to clipboardExpand all lines: docs/guide/browser/index.md
+2
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,8 @@ export default defineConfig({
107
107
108
108
::: info
109
109
Vitest assigns port `63315` to avoid conflicts with the development server, allowing you to run both in parallel. You can change that with the [`browser.api`](/config/#browser-api) option.
110
+
111
+
Since Vitest 2.1.5, CLI no longer prints the Vite URL automcatically. You can press "b" to print the URL when running in watch mode.
110
112
:::
111
113
112
114
If you have not used Vite before, make sure you have your framework's plugin installed and specified in the config. Some frameworks might require extra configuration to work - check their Vite related documentation to be sure.
@@ -19,25 +19,26 @@ export class PreviewBrowserProvider implements BrowserProvider {
19
19
return{}
20
20
}
21
21
22
-
asyncinitialize(ctx: WorkspaceProject){
23
-
this.ctx=ctx
22
+
asyncinitialize(project: WorkspaceProject){
23
+
this.project=project
24
24
this.open=false
25
-
if(ctx.config.browser.headless){
25
+
if(project.config.browser.headless){
26
26
thrownewError(
27
27
'You\'ve enabled headless mode for "preview" provider but it doesn\'t support it. Use "playwright" or "webdriverio" instead: https://vitest.dev/guide/browser/#configuration',
0 commit comments