-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
area: documentationanything involving docs or mochajs.organything involving docs or mochajs.orgcore-teamissues which must be handled by Mocha's core teamissues which must be handled by Mocha's core team
Description
#5357 seems to be moving towards an ESM-first Mocha 12+. Should the require and exports interfaces be removed, renamed, or have their documentation updated to demonstrate how to use them with ESM syntax?
mocha/docs-next/src/content/docs/interfaces/exports.mdx
Lines 19 to 22 in b1f1cb7
| module.exports = { | |
| before: function () { | |
| // ... | |
| }, |
mocha/docs-next/src/content/docs/interfaces/require.mdx
Lines 10 to 14 in cafa782
| The `require` interface cannot be run via the `node` executable, and must be run via `mocha`. | |
| ::: | |
| ```js | |
| var testCase = require("mocha").describe; |
Metadata
Metadata
Assignees
Labels
area: documentationanything involving docs or mochajs.organything involving docs or mochajs.orgcore-teamissues which must be handled by Mocha's core teamissues which must be handled by Mocha's core team