OptionalcommandsCommands that will be executed on the server
via the browser import("vitest/browser").commands API.
OptionalconnectTimeout for connecting to the browser
if running tests in the browser should be the default
OptionalexpectRun test files in parallel if provider supports this option This option only has effect in headless mode (enabled in CI by default)
enable headless mode
OptionalinstancesConfigurations for different browser setups
Isolate test environment after each test
Locator options
OptionalorchestratorScripts injected into the main window.
OptionalproviderBrowser provider
OptionalscreenshotDirectory where screenshots will be saved when page.screenshot() is called If not set, all screenshots are saved to screenshots directory in the same folder as the test file. If this is set, it will be resolved relative to the project root.
Should Vitest take screenshots if the test fails
OptionaltesterPath to the index.html file that will be used to run tests.
Generate traces that can be viewed on https://trace.playwright.dev/
This option is supported only by playwright provider.
OptionaltrackEnables tracking uncaught errors and exceptions so they can be reported by Vitest.
If you need to hide certain errors, it is recommended to use onUnhandledError option instead.
Disabling this will completely remove all Vitest error handlers, which can help debugging with the "Pause on exceptions" checkbox turned on.
Show Vitest UI
Default viewport size
Serve API options.
The default port is 63315.