Upgrade to Mocha 10

Proprietary

Upgrade mocha and @types/mocha to 10.x in package.json. Mocha 10 drops Node.js 12 support. Not done by this recipe: raising engines.node, and the other breaking changes in the Mocha 10 release notes.

org.openrewrite.nodejs.migrate.mocha.UpgradeToMocha10
mod run . --recipe=org.openrewrite.nodejs.migrate.mocha.UpgradeToMocha10

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