Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--require esm works as command-line arg, but not in mocha.opts #4015

Closed
alexbepple opened this issue Sep 10, 2019 · 1 comment
Closed

--require esm works as command-line arg, but not in mocha.opts #4015

alexbepple opened this issue Sep 10, 2019 · 1 comment
Labels
duplicate been there, done that, got the t-shirt...

Comments

@alexbepple
Copy link

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.

@juergba juergba added the duplicate been there, done that, got the t-shirt... label Sep 11, 2019
@juergba
Copy link
Member

juergba commented Sep 11, 2019

@alexbepple thank you for this issue. Yes, it's a bug, see #3975.
We have already fixed it in current master, but it's not published, yet.

BTW we recommend not to use mocha.opts any longer and to switch to our configuration files. mocha.opts is going to be deprecated in the next major release.

@juergba juergba closed this as completed Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate been there, done that, got the t-shirt...
Projects
None yet
Development

No branches or pull requests

2 participants