Replace source-map-support/register with enable-source-maps in mocha config

Proprietary

Replaces source-map-support/register in the require list of .mocharc.js/.mocharc.cjs with 'enable-source-maps': true, which mocha forwards to Node as --enable-source-maps, and --require source-map-support/register in mocha.opts with --enable-source-maps.

org.openrewrite.node.migrate.source-map-support.replace-source-map-support-register-in-mocha-config
mod run . --recipe=org.openrewrite.node.migrate.source-map-support.replace-source-map-support-register-in-mocha-config

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