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

mochajs / mocha / 9657430505
94%

Build:
DEFAULT BRANCH: main
Ran 25 Jun 2024 06:23AM UTC
Jobs 1
Files 56
Run time 1min
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

25 Jun 2024 06:17AM UTC coverage: 94.314%. First build
9657430505

push

github

web-flow
fix: Add error handling for nonexistent file case with --file option (#5086)

* feat: handle nonexistent files passed to --file

- added error handling when using the --file flag to do it the way
  --require does
- added a test to assert that we throw the same type of error

* refactor: remove path.resolve()

- require.resolve() by Node.js follows a Node.js module resolution algo
  which includes checking if the resolved path actually exists on the
  file system.

* add comment to new code in collect-files.js

* fix: add back absolute path resolving

* refactor: log warning and remove call stack

* revert changes to bin/mocha.js

* improve test case

* throw error and have handler work with it

* change collectFiles to return object

* clean up

* exit mocha immediately on missing file

* new log message

* add tests

* code quality improvements

* add comments

* docs: update to new link name

* pass mocha instance to helper function

---------

Co-authored-by: Pelle Wessman <pelle@kodfabrik.se>

1376 of 1560 branches covered (88.21%)

33 of 36 new or added lines in 3 files covered. (91.67%)

3583 of 3799 relevant lines covered (94.31%)

1252.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9657430505.1 25 Jun 2024 06:23AM UTC 0
94.31
GitHub Action Run
Source Files on build 9657430505
Detailed source file information is not available for this build.
  • Back to Repo
  • dbe229d1 on github
  • Next Build on main (#9657469942)
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