• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mochajs / mocha / 17379256820

01 Sep 2025 01:35PM UTC coverage: 94.139% (-0.07%) from 94.205%
17379256820

push

github

web-flow
fix: fail with an informative error message on a file with a broken default import (#5413)

* Fixes #5411.

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

* Add debug logs to esm-utils

* Always attempt import() after failed require(). On failure, only throw the require error in case the import error is ERR_INTERNAL_ASSERTION

---------

Co-authored-by: Mark Wiemer <markwiemer@outlook.com>

1430 of 1616 branches covered (88.49%)

7 of 8 new or added lines in 1 file covered. (87.5%)

2 existing lines in 1 file now uncovered.

3678 of 3907 relevant lines covered (94.14%)

10442.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

98.0
/lib/nodejs/esm-utils.js


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc