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

mochajs / mocha / 11582029670 / 34
94%
main: 94%

Build:
DEFAULT BRANCH: main
Ran 29 Oct 2024 08:44PM UTC
Files 56
Run time 23s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Oct 2024 08:34PM UTC coverage: 85.412% (-0.04%) from 85.449%
11582029670.34

push

github

web-flow
fix: handle case of invalid package.json with no explicit config (#5198)

* fix: report syntax errors in package.json (fixes: #5141)

* fix(tests): incorrect test (should use existing result)

Since `readFileSync` is only stubbed `onFirstCall` we get a different answer
the second time around which is probably Not What You Want.  But also we
*already checked that config = false*.  So you could just remove this
test, it does nothing useful.

* fix: separate read and parse errors

* fix: clarify invalid JSON

Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>

* fix(test): expect only a SyntaxError nothing else

---------

Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>

1125 of 1575 branches covered (71.43%)

3273 of 3832 relevant lines covered (85.41%)

948.8 hits per line

Source Files on job run-test-node:integration-14-ubuntu-latest- - 11582029670.34
  • Tree
  • List 56
  • Changed 7
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 11582029670
  • f72bc17c on github
  • Prev Job for on main (#11581816444.32)
  • Next Job for on main (#11582068979.50)
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