From 28405e004a4159a7b0f5dec7899e9897da87b921 Mon Sep 17 00:00:00 2001 From: yannbf Date: Wed, 7 Jan 2026 21:38:33 +0100 Subject: [PATCH] Addon Vitest: Improve error message in testing widget modal --- code/addons/vitest/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/addons/vitest/src/utils.ts b/code/addons/vitest/src/utils.ts index befbb6f45d17..ce8fed22e9d2 100644 --- a/code/addons/vitest/src/utils.ts +++ b/code/addons/vitest/src/utils.ts @@ -5,7 +5,7 @@ export function errorToErrorLike(error: Error): ErrorLike { message: error.message, name: error.name, // avoid duplicating the error message in the stack trace - stack: error.stack?.replace(error.message, ''), + stack: error.message + ' ' + error.stack?.replace(error.message, ''), cause: error.cause && error.cause instanceof Error ? errorToErrorLike(error.cause) : undefined, }; }