From 534fb2b72af9e7b9e4a61af514169e183a92b0c4 Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Tue, 27 Aug 2024 17:10:15 +0200 Subject: [PATCH] Use relative path from workspace to vite.config in extends path --- code/addons/vitest/src/postinstall.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 : ''} ],