--require esm
works as command-line arg, but not in mocha.opts
#4015
Labels
duplicate
been there, done that, got the t-shirt...
I believe this is a regression in Mocha 6 from Mocha 5. At least, I have not found any doc describing the change in behavior.
Here is a minimal repo demonstrating the difference in behavior.
https://github.com/alexbepple/possible-mocha-bug-with-require
I believe this to be a bug.
The text was updated successfully, but these errors were encountered: