Upgrade to Mocha 11

Proprietary

Upgrades a Mocha 9 or 10 project to Mocha 11, first applying the Mocha 10 upgrade, then raises engines.node to 18 in each package.json declaring Mocha, since Mocha 11 needs Node.js 18.18 or later, and upgrades mocha to 11.x. @types/mocha stays on 10.x, its latest major.

io.moderne.javascript.testing.mocha.UpgradeToMocha11
mod run . --recipe=io.moderne.javascript.testing.mocha.UpgradeToMocha11

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.