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.
SubscribeRelated
defineConfigdefineProjectvitest.config.tsvite.config.tstest.environmenttest.exclude