Upgrade to Mocha 11
ProprietaryChains the earlier majors: a project several majors behind needs only this recipe, and upgrades the dependencies once, straight to 11.x, so no intermediate version has to resolve. Upgrade mocha to 11.x and @types/mocha to 10.x in package.json. Mocha 11 requires Node.js 18 or later. Not done by this recipe: raising engines.node, and the other breaking changes in the Mocha 11 release notes.
org. openrewrite. nodejs. migrate. mocha. UpgradeToMocha11mod run . --recipe= org. openrewrite. nodejs. migrate. mocha. UpgradeToMocha11Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.