Skip to content

fix: show cli error message - #186

Merged
pi0 merged 5 commits into
unjs:mainfrom
BobbieGoede:fix/show-cli-error-message
Mar 9, 2025
Merged

pi0 merged 5 commits into
unjs:mainfrom
BobbieGoede:fix/show-cli-error-message

Conversation

@BobbieGoede

@BobbieGoede BobbieGoede commented Mar 9, 2025 •

Copy link
Copy Markdown
Contributor

This fixes the failing tests. investigating..

I think the intention of #167 was to show either the error message or the error with stack trace, but ended up removing the error message log for cli errors entirely? 🤔

before:

image

after:

image

@pi0

pi0 commented Mar 9, 2025

Copy link
Copy Markdown
Member

can you check fixtures? (need updating)

@codecov

codecov Bot commented Mar 9, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@501b446). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #186   +/-   ##
=======================================
  Coverage        ?   88.22%           
=======================================
  Files           ?        7           
  Lines           ?      501           
  Branches        ?      149           
=======================================
  Hits            ?      442           
  Misses          ?       59           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@BobbieGoede

Copy link
Copy Markdown
Contributor Author

@pi0
Something is going on with the snapshots, looks like there are issues with styling + snapshots (underline, bold, gray). I managed to workaround this by mocking the styling functions, it's not pretty, hoping you have a hunch on what the underlying issue might be 🙏

@pi0 pi0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thnx!

@pi0
pi0 merged commit 7de2a6c into unjs:main Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants