diff --git a/vitest.config.integration.ts b/vitest.config.integration.ts index ac3260f8..0185b149 100644 --- a/vitest.config.integration.ts +++ b/vitest.config.integration.ts @@ -2,6 +2,11 @@ import { defineConfig, mergeConfig } from 'vitest/config'; import viteConfig from './vite.config'; +// 1. Separate the 'test' config (which has Unit Test exclusions) +// from the rest of the general Vite config (plugins, aliases, etc.) +// We cast to 'any' to avoid strict type checking on the import if necessary. +const { test: unitTestConfig, ...baseViteConfig } = viteConfig as any; + /** * This configuration is specifically for integration tests. * It MERGES with the main vite.config.ts to inherit plugins and aliases,