[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

chore: Remove no-op function in plugin config logic (#8501)

Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>

authored by

Trevor Burnham
Vladimir
and committed by
GitHub
(Apr 9, 2026, 9:32 AM +0200) 82c858d9 0fc4b47e

+1 -11
+1 -11
packages/vitest/src/node/plugins/index.ts
··· 54 54 const testConfig = deepMerge( 55 55 {} as UserConfig, 56 56 configDefaults, 57 - removeUndefinedValues(viteConfig.test ?? {}), 57 + viteConfig.test ?? {}, 58 58 options, 59 59 ) 60 60 testConfig.api = resolveApiServerConfig(testConfig, defaultPort) ··· 288 288 NormalizeURLPlugin(), 289 289 ModuleRunnerTransform(), 290 290 ].filter(notNullish) 291 - } 292 - function removeUndefinedValues<T extends Record<string, any>>( 293 - obj: T, 294 - ): T { 295 - for (const key in Object.keys(obj)) { 296 - if (obj[key] === undefined) { 297 - delete obj[key] 298 - } 299 - } 300 - return obj 301 291 }