You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mocha supports ES modules only from Node.js v12.11.0 and above. To enable this in versions smaller than 13.2.0, you need to add --experimental-modules when running Mocha. From version 13.2.0 of Node.js, you can use ES modules without any flags.
I try to use mocha like this for this reference
https://mochajs.org/#nodejs-native-esm-support
main.mjs
add.mjs
command
But both of them is not working
I also found the npm link
https://www.npmjs.com/package/mjs-mocha
But Can't Mocha just alone do that?
version
The text was updated successfully, but these errors were encountered: