Defines the root Vitest configuration for the workspace. Merges the base root configuration with any provided user configuration.
import { defineProject } from "./defineProject";// Example with default configurationdefineProject();// Example with user configuration overridesdefineProject({ test: { dir: "packages", },}); Copy
import { defineProject } from "./defineProject";// Example with default configurationdefineProject();// Example with user configuration overridesdefineProject({ test: { dir: "packages", },});
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