Type Alias: BrowserOptions
Documentation / @wtf/project-vitest / browser / BrowserOptions
type BrowserOptions = Omit<NonNullable<ViteUserConfig["test"]>, "alias"> & object;Defined in: packages/project-vitest/src/browser.ts:38
What a package gives browserConfig: its tests’ options over the config’s, such as its
name, its include or its setupFiles; and of Vite, its own plugins, as a dev server’s
endpoints the tests fetch, and its own aliases, as @ for its src, added to the workspace’s.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
alias? | NonNullable<NonNullable<ViteUserConfig["resolve"]>["alias"]> | Vite’s aliases of the package, as resolve.alias has them, before the workspace’s. | packages/project-vitest/src/browser.ts:42 |
plugins? | NonNullable<ViteUserConfig["plugins"]> | Vite’s plugins of the package, after the config’s own. | packages/project-vitest/src/browser.ts:40 |
