Skip to content

deps: bump mocha to ^12 - #7557

Open
ganeshghutukade-04 wants to merge 2 commits into
expressjs:masterfrom
ganeshghutukade-04:deps/mocha-12
Open

ganeshghutukade-04 wants to merge 2 commits into
expressjs:masterfrom
ganeshghutukade-04:deps/mocha-12

Conversation

@ganeshghutukade-04

Copy link
Copy Markdown

Updates mocha to ^12 (refs #7547).

Mocha 12 requires Node ^20.19.0 || >=22.12.0, while Express still supports
Node 18+. To keep the existing test matrix, the CI jobs for Node 18, 19 and
21 install mocha@11 over the new version; all other jobs use mocha 12.

Verified locally on Node 24:

  • npm run lint
  • npm test (1290 passing)
  • npm run test-tap (1290 passing)
  • npm run test-ci (coverage generated)

Not verified locally: the Node 18, 19 and 21 jobs. Happy to adjust if you'd
prefer a different approach, for example dropping Node 18.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​mocha@​11.8.0 ⏵ 12.0.3971009595 +1100

View full report

@ganeshghutukade-04 ganeshghutukade-04 changed the title Deps/mocha 12 deps: bump mocha to ^12 Oct 24, 2026
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