diff --git a/vitest.e2e.config.ts b/vitest.e2e.config.ts index 8e168f65341..a75631d5808 100644 --- a/vitest.e2e.config.ts +++ b/vitest.e2e.config.ts @@ -1,10 +1,8 @@ -import { UserConfig } from 'vitest/config' +import { mergeConfig } from 'vitest/config' import config from './vitest.config' -export default { - ...config, +export default mergeConfig(config, { test: { - ...config.test, include: ['packages/vue/__tests__/e2e/*.spec.ts'] } -} as UserConfig +}) diff --git a/vitest.unit.config.ts b/vitest.unit.config.ts index 2094385dd8e..60648540c10 100644 --- a/vitest.unit.config.ts +++ b/vitest.unit.config.ts @@ -1,10 +1,8 @@ -import { UserConfig, configDefaults } from 'vitest/config' +import { configDefaults, mergeConfig } from 'vitest/config' import config from './vitest.config' -export default { - ...config, +export default mergeConfig(config, { test: { - ...config.test, exclude: [...configDefaults.exclude, '**/e2e/**'] } -} as UserConfig +})