Function: rootConfig()
Documentation / @wtf/project-vitest / config / rootConfig
function rootConfig(__namedParameters?): Promise<UserConfig>;Defined in: packages/project-vitest/src/config.ts:116
The Vitest config of the root: each package’s vitest.config.ts a project, in one process
(pnpm test), and the root project of the repo’s guards, test/. One JUnit report in CI, and
coverage of them all by --coverage, of the sources in src: from the build too, by the source
maps of dist. projects are added after these.
The guards’ project extends nothing of the root’s config (extends: false), as Vitest 5 would
by default: it has its own resolution, so the plugin of the build and each alias apply to it
once. A guard has GUARD_TIMEOUT, 30 seconds, as a package’s test has, and not Vitest’s
5: testTimeout gives another.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | RootConfigOptions |
Returns
Promise<UserConfig>
