Defines the root Vitest configuration for the workspace. Merges the base root configuration with any provided user configuration.
import { defineRoot } from "./defineRoot";// Example usages of defineRootdefineRoot();// Example with user configuration overridesdefineRoot({ test: { dir: "packages", coverage: { thresholds: { "100": true, }, }, },}); Copy
import { defineRoot } from "./defineRoot";// Example usages of defineRootdefineRoot();// Example with user configuration overridesdefineRoot({ test: { dir: "packages", coverage: { thresholds: { "100": true, }, }, },});
Optional user-provided Vitest configuration overrides
The merged root Vitest configuration
Defines the root Vitest configuration for the workspace. Merges the base root configuration with any provided user configuration.
Example