Function: browserRootConfig()
Documentation / @wtf/project-vitest / browser / browserRootConfig
function browserRootConfig(options?): Promise<UserConfig>;Defined in: packages/project-vitest/src/browser.ts:145
The Vitest config of the root’s tests of the browser, vitest.browser.config.ts: each package’s
vitest.browser.config.ts a project, in one process (pnpm test:browser), apart from the unit
suite, as it needs a browser, which the CI’s job of the unit suite does not have. Its own JUnit
report, browser-results.xml, and coverage by --coverage, by v8, which measures the browser
by its DevTools protocol, of the sources, as rootConfig measures them: from the source, or,
with TEST_FROM=dist, from the build, which it maps to the sources by the source maps the build
writes beside dist (pnpm run test:browser:dist --coverage). It takes the options of
rootConfig.
Parameters
| Parameter | Type |
|---|---|
options | RootOptions |
Returns
Promise<UserConfig>
