Skip to content

Commit

Permalink
improve message
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Jan 6, 2025
1 parent c826b86 commit 987d698
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/addons/test/src/postinstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
`);
}

Expand Down

0 comments on commit 987d698

Please sign in to comment.