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

mochajs / mocha / 7561 / 6
94%
main: 94%

Build:
Build:
LAST BUILD BRANCH: Expresso
DEFAULT BRANCH: main
Ran 01 Jun 2020 11:05PM UTC
Files 54
Run time 7s
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

01 Jun 2020 10:53PM UTC coverage: 93.565% (-0.02%) from 93.585%
NODE_OPTIONS="--trace-warnings"

push

travis-ci

web-flow
Support --require of ESM; closes #4281 (#4304)

* Support --require of ESM; closes #4281
Allow files/modules specified in `--require` to be ESM.

CommonJS loading is still supported and the default.

* Conditionally generate url for import
Windows compatible

* Add tests for --require ESM
As both .mjs and type=module (combined with cjs for good measure).

Updated linter to allow tests to use spread operator (ecmaVersion 2018)

Allow --require'd module to be an object, or "module"

* Revert change to eslintrc, use mocha to pass experimental flag

* Replace type() -> typeof
Add truthy check to handle null edge case

type(ES Module) => "module", but we treat it the same as an object

* Remove doc limitation for --require ESM

* Add note to --require docs about ESM support

1219 of 1392 branches covered (87.57%)

3228 of 3450 relevant lines covered (93.57%)

1864.8 hits per line

Source Files on job 7561.6 (NODE_OPTIONS="--trace-warnings")
  • Tree
  • List 0
  • Changed 51
  • Source Changed 2
  • Coverage Changed 51
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 6694
  • Travis Job 7561.6
  • 273dbbbf on github
  • Prev Job for NODE_OPTIONS="--trace-warnings" on master (#7560.6)
  • Next Job for NODE_OPTIONS="--trace-warnings" on master (#7572.6)
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