• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Info updated!

kevinoid / node-project-template
96%

Build:
DEFAULT BRANCH: main
Repo Added 15 Nov 2020 10:23PM UTC
Token kQXQur4jE7CgDIi3NwFgf6DLjkprTPYD4 regen
Build 2155 Last
Files 3
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

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • commonjs
  • dependabot/github_actions/actions/checkout-3
  • dependabot/github_actions/actions/checkout-4
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/actions/checkout-5.0.1
  • dependabot/github_actions/actions/checkout-6.0.0
  • dependabot/github_actions/actions/checkout-6.0.1
  • dependabot/github_actions/actions/checkout-6.0.2
  • dependabot/github_actions/actions/setup-node-4
  • dependabot/github_actions/actions/setup-node-5
  • dependabot/github_actions/actions/setup-node-6.0.0
  • dependabot/github_actions/actions/setup-node-6.1.0
  • dependabot/github_actions/actions/setup-node-6.2.0
  • dependabot/github_actions/actions/setup-node-6.4.0
  • dependabot/github_actions/codecov/codecov-action-3
  • dependabot/github_actions/codecov/codecov-action-4
  • dependabot/github_actions/codecov/codecov-action-5
  • dependabot/github_actions/codecov/codecov-action-5.5.2
  • dependabot/github_actions/codecov/codecov-action-5.5.3
  • dependabot/github_actions/codecov/codecov-action-6.0.0
  • dependabot/github_actions/coverallsapp/github-action-2.3.7
  • dependabot/github_actions/zizmorcore/zizmor-action-0.3.0
  • dependabot/github_actions/zizmorcore/zizmor-action-0.4.1
  • dependabot/github_actions/zizmorcore/zizmor-action-0.5.0
  • dependabot/github_actions/zizmorcore/zizmor-action-0.5.2
  • dependabot/github_actions/zizmorcore/zizmor-action-0.5.3
  • dependabot/npm_and_yarn/c8-10.0.0
  • dependabot/npm_and_yarn/c8-8.0.0
  • dependabot/npm_and_yarn/c8-9.0.0
  • dependabot/npm_and_yarn/jsdoc-4.0.0
  • dependabot/npm_and_yarn/mocha-11.0.1
  • dependabot/npm_and_yarn/mocha-9.0.0
  • dependabot/npm_and_yarn/rimraf-5.0.0
  • dependabot/npm_and_yarn/rimraf-6.0.0
  • dependabot/npm_and_yarn/rimraf-6.0.1
  • dependabot/npm_and_yarn/yargs-17.0.0
  • dependabot/npm_and_yarn/yargs-17.0.1
  • esm
  • foo.bar
  • ghactions
  • main
  • master
  • node-10
  • test

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

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

Relevant lines Covered
Build:
Build:
164 RELEVANT LINES 160 COVERED LINES
18.44 HITS PER LINE
Source Files on main
  • Tree
  • List 3
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
26032272711 main 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, ... push 18 May 2026 12:03PM UTC kevinoid github
95.54
25987965190 main 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, ... push 17 May 2026 10:10AM UTC kevinoid github
95.54
25976597027 main 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, ... push 17 May 2026 12:12AM UTC kevinoid github
95.54
25370797969 main build(deps): bump actions/setup-node from 6.2.0 to 6.4.0 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6.2.0 to 6.4.0. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actio... push 05 May 2026 10:22AM UTC kevinoid github
95.54
25314166979 main build(deps): bump actions/setup-node from 6.2.0 to 6.4.0 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6.2.0 to 6.4.0. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actio... push 04 May 2026 10:34AM UTC kevinoid github
95.54
25275936554 main build(deps): bump actions/setup-node from 6.2.0 to 6.4.0 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6.2.0 to 6.4.0. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actio... push 03 May 2026 09:52AM UTC kevinoid github
95.54
25249147190 main build(deps): bump actions/setup-node from 6.2.0 to 6.4.0 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6.2.0 to 6.4.0. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actio... push 02 May 2026 09:43AM UTC kevinoid github
95.54
25210675295 main build(deps): bump actions/setup-node from 6.2.0 to 6.4.0 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6.2.0 to 6.4.0. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actio... push 01 May 2026 10:09AM UTC kevinoid github
95.54
25160428853 main build(deps): bump actions/setup-node from 6.2.0 to 6.4.0 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6.2.0 to 6.4.0. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actio... push 30 Apr 2026 10:27AM UTC kevinoid github
95.54
25120756236 main build(deps): bump actions/setup-node from 6.2.0 to 6.4.0 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6.2.0 to 6.4.0. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actio... push 29 Apr 2026 04:23PM UTC kevinoid github
95.54
See All Builds (1682)

Badge your Repo: node-project-template

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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