diff --git a/code/addons/vitest/src/postinstall.ts b/code/addons/vitest/src/postinstall.ts index aa7496c72cba..2358bcbc9724 100644 --- a/code/addons/vitest/src/postinstall.ts +++ b/code/addons/vitest/src/postinstall.ts @@ -128,7 +128,7 @@ export default async function postInstall(options: PostinstallOptions) { export default defineWorkspace([ '${relative(dirname(browserWorkspaceFile), rootConfig)}', { - extends: '${viteConfig || ''}', + extends: '${viteConfig ? relative(dirname(browserWorkspaceFile), viteConfig) : ''}', plugins: [ storybookTest(),${vitestInfo.frameworkPluginCall ? '\n' + vitestInfo.frameworkPluginCall : ''} ],