Function: packageConfig()
Documentation / @wtf/project-vitest / config / packageConfig
function packageConfig(test?, config?): Promise<UserConfig>;Defined in: packages/project-vitest/src/config.ts:81
The Vitest config of one package, a project of the root’s run: its tests against the source of
every package, or against their build (see FROM_DIST). A package gives only what differs,
such as the files it tests, or a jsdom environment: by test, each option over this one’s;
and by config, a config of Vite merged into this one, as Vite’s mergeConfig merges them: its
aliases first, so they win, and its other lists after these, as of server.fs.allow or
test.server.deps.inline. Its tests are each *.test.ts of test/, but the integration suite’s
and the browser’s.
export default packageConfig({ environment: 'jsdom' }, { resolve: { dedupe: ['react'] } })Parameters
| Parameter | Type |
|---|---|
test | InlineConfig |
config | UserConfig |
Returns
Promise<UserConfig>
