Skip to content

Upgrade mocha to 12 and run tests via CLI - #194

Merged
danielzzz merged 2 commits into
masterfrom
test/mocha-12
Sep 10, 2026
Merged

Upgrade mocha to 12 and run tests via CLI#194
danielzzz merged 2 commits into
masterfrom
test/mocha-12

Conversation

@danielzzz

Copy link
Copy Markdown
Owner

Summary

  • Bump mocha 11 to 12 so serialize-javascript 7.1.1 can land with it
  • Drop grunt-mocha-test (cannot new Mocha() on mocha 12) and grunt-nyc-mocha (still calls removed mocha/bin/_mocha)
  • Run lint/tests/coverage through mocha and nyc CLI scripts instead

Test plan

  • npm run lint locally
  • npm run test: 276 passing plus tsd
  • npx grunt diffDts
  • npm run coverage: cobertura written under dist/coverage
  • CI green on Node 20 and 22

grunt-mocha-test cannot construct mocha 12, so drop it and grunt-nyc-mocha in favor of mocha and nyc scripts.
@github-actions

Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Health
lib 91% 100%
lib.builder 95% 75%
lib.parser 95% 80%
Summary 95% (382 / 404) 78% (142 / 182)

Minimum allowed line rate is 60%

@danielzzz
danielzzz merged commit 2cf0653 into master Sep 10, 2026
2 checks passed
@danielzzz
danielzzz deleted the test/mocha-12 branch September 10, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant