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

kevinoid / node-project-template / 25987965190
96%

Build:
DEFAULT BRANCH: main
Ran 17 May 2026 10:10AM UTC
Jobs 4
Files 3
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

17 May 2026 12:11AM UTC coverage: 95.545%. First build
25987965190

push

github

kevinoid
override yargs for c8 only on Node 26

Forcing yargs@^18 for c8 only works on Node versions which support
[loading ECMAScript modules using
`require()`](https://nodejs.org/api/modules.html#loading-ecmascript-modules-using-require)
(v23, v22.12.0, v20.19.0).  On unsupported versions, it fails with:

    > c8 --reporter=lcov --reporter=text npm run test-unit

    node:internal/modules/cjs/loader:1123
        throw new ERR_REQUIRE_ESM(filename, true);
        ^

    Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/node-project-template/node-project-template/node_modules/yargs/index.mjs not supported.
    Instead change the require of /home/runner/work/node-project-template/node-project-template/node_modules/yargs/index.mjs to a dynamic import() which is available in all CommonJS modules.
        at Object.<anonymous> (/home/runner/work/node-project-template/node-project-template/node_modules/c8/lib/parse-args.js:5:15)
        at Object.<anonymous> (/home/runner/work/node-project-template/node-project-template/node_modules/c8/bin/c8.js:11:5) {
      code: 'ERR_REQUIRE_ESM'
    }

Fixes: b83e38423d36 ("fix: override for c8 to use yargs@^18 for Node 26")
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>

33 of 38 branches covered (86.84%)

Branch coverage included in aggregate %.

160 of 164 relevant lines covered (97.56%)

18.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ubuntu-latest_x64_* - 25987965190.1 17 May 2026 10:10AM UTC 3
95.54
GitHub Action Run
2 ubuntu-latest_x64_20.0 - 25987965190.2 17 May 2026 10:11AM UTC 3
95.54
GitHub Action Run
3 windows-latest_x64_20.0 - 25987965190.3 17 May 2026 10:11AM UTC 3
95.54
GitHub Action Run
4 windows-latest_x64_latest - 25987965190.4 17 May 2026 10:11AM UTC 3
95.54
GitHub Action Run
Source Files on build 25987965190
  • Tree
  • List 3
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25987965190
  • 80a0da90 on github
  • Prev Build on main (#25975224548)
  • Next Build on main (#26032272711)
  • Delete
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