-
-
Notifications
You must be signed in to change notification settings - Fork 4
fix: improve error message when package.json is missing #122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
commit: |
…pshots for consistent output
|
|
||
| let message = `${severityColor('[duplicate dependency]')} ${colors.bold(duplicate.name)} has ${duplicate.versions.length} installed versions:`; | ||
| // Disable colors completely when NO_COLOR is set (for consistent test snapshots) | ||
| const noColor = process.env.NO_COLOR === '1'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
this feels like a workaround rather than a necessity.
are you doing this because we didn't have any snapshots yet which use colours? we should just set FORCE_COLOR to 1 in the vitest config env (although vitest 4 might already do this)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed it was a workaround cause i couldn't make the tests work properly even after updating the snapshots.
|
i think we need to hold off on this change until i finish aligning a bunch of the logic with the e18e github action as it will change quite a lot of the inner workings ill get back to it once i merge that stuff 👍 |
|
is there anything i can help you with? |
closes: #119