From 987d698d0a92111a933692149e39036f3c7124a2 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Mon, 6 Jan 2025 18:45:54 +0100 Subject: [PATCH] improve message --- code/addons/test/src/postinstall.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/addons/test/src/postinstall.ts b/code/addons/test/src/postinstall.ts index 6575b4930dd6..b4949927736b 100644 --- a/code/addons/test/src/postinstall.ts +++ b/code/addons/test/src/postinstall.ts @@ -150,8 +150,8 @@ export default async function postInstall(options: PostinstallOptions) { if (coercedMswVersion && !satisfies(coercedMswVersion, '>=2.0.0')) { reasons.push(dedent` - • Detected the package MSW installed at version ${picocolors.bold(coercedMswVersion.version)}. To avoid conflicts with Vitest's dependencies, MSW must be version 2.0.0 or later. - Please update to a compatible version. + • The addon uses Vitest behind the scenes, which supports only version 2 and above of MSW. However, we have detected version ${picocolors.bold(coercedMswVersion.version)} in this project. + Please update the 'msw' package and try again. `); }