We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fc4b47 commit 82c858dCopy full SHA for 82c858d
packages/vitest/src/node/plugins/index.ts
@@ -54,7 +54,7 @@ export async function VitestPlugin(
54
const testConfig = deepMerge(
55
{} as UserConfig,
56
configDefaults,
57
- removeUndefinedValues(viteConfig.test ?? {}),
+ viteConfig.test ?? {},
58
options,
59
)
60
testConfig.api = resolveApiServerConfig(testConfig, defaultPort)
@@ -289,13 +289,3 @@ export async function VitestPlugin(
289
ModuleRunnerTransform(),
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
-}
0 commit comments