Skip to content

fix: Fail with an informative error message on a file with a broken default import #5413

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

martinslota
Copy link

Fail with an informative error message on a file with a broken default import.

PR Checklist

Overview

Fail with an informative error message on a file with a broken default import.

Copy link

linux-foundation-easycla bot commented Aug 9, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: martinslota / name: Martin Slota (e171a5d)
  • ✅ login: mark-wiemer / name: Mark Wiemer (aafc2c3)

@martinslota martinslota changed the title Fixes #5411. Fail with an informative error message on a file with a broken default import Aug 9, 2025
Fail with an informative error message on a file with a broken default import.
@martinslota martinslota force-pushed the fix-mocha-default-import-error-message branch from edb0e34 to e171a5d Compare August 9, 2025 19:50
@mark-wiemer
Copy link
Member

Nice :) cursory review looks good, I'll dive deep into this tomorrow as I'm still a new maintainer

@mark-wiemer mark-wiemer marked this pull request as ready for review August 10, 2025 23:12
@mark-wiemer mark-wiemer changed the title Fail with an informative error message on a file with a broken default import fix: Fail with an informative error message on a file with a broken default import Aug 10, 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.

🐛 Bug: Unhelpful error message when a default import is made from a module without a default export
2 participants