Skip to content
masterclass Buddy

Vitest · Function

mergeConfig

mergeConfig combines shared Vite or Vitest settings with project-specific options. Use it when a separate project config needs to reuse a shared configuration.

Last updated

Syntax

mergeConfig(baseConfig, projectConfig)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • defineConfig
  • defineProject
  • vitest.config.ts
  • vite.config.ts
  • test.environment
  • test.exclude

Source: Configuring Vitest | Vitest. Checked 2026-11-03.