-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
🛠️ Repo: Convert lib/reporters/base.js to ESM #5963
Copy link
Copy link
Open
Labels
area: repository toolingconcerning ease of contributionconcerning ease of contributionsemver-majorimplementation requires increase of "major" version number; "breaking changes"implementation requires increase of "major" version number; "breaking changes"status: accepting prsMocha can use your help with this one!Mocha can use your help with this one!
Milestone
Metadata
Metadata
Assignees
Labels
area: repository toolingconcerning ease of contributionconcerning ease of contributionsemver-majorimplementation requires increase of "major" version number; "breaking changes"implementation requires increase of "major" version number; "breaking changes"status: accepting prsMocha can use your help with this one!Mocha can use your help with this one!
Sub-issue of #5400 (Switch from CJS to ESM internally).
lib/reporters/base.jsis the last remaining CJS file among reporters. All other reporters (doc,dot,html,json,json-stream,landing,list,markdown,min,nyan,progress,spec,tap,xunit) have already been converted to.mjs.File to convert
lib/reporters/base.jsNotes
Per AGENTS.md CJS-to-ESM conventions:
export defaultbase.mjsconst { ... } = require("./base.mjs")(destructured named imports)lib/reporters/index.jsCJS re-export shim will need to be updated to referencebase.mjs