-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix duplication of mocha.opts on process.argv #1910
Conversation
720a59c
to
fa80d9b
Compare
This could be an issue for those who invoke mocha using |
@danielstjules Hmm, ok. Would you recommend adding something to |
Could we keep it in _mocha, and remove the duplicate from mocha instead? |
Woops, sorry! :) Having a slow morning |
@danielstjules Yeah, that should work. I will fix and push soon. |
fa80d9b
to
11f4d9c
Compare
@danielstjules Should be good now, I think. |
Any more feedback on this? |
11f4d9c
to
f8294e6
Compare
LGTM 🚢 🇮🇹 |
Looks like there are several PRs stuck in limbo. Anything I can do to help? |
Could've sworn there was a reason they were duplicated, but perhaps not. |
Fix duplication of mocha.opts on process.argv
@travisjeffery Thanks! |
thanks for the fix :) any idea when this will be published to npm? |
Found by @jameswomack (see yargs issue 267), mocha is reading options from
test/mocha.opts
and adding them toprocess.argv
twice - once inbin/mocha
and then again inbin/_mocha
. This PR removes the 2nd one and adds a unit test to cover this scenario.Wasn't quite sure where to put the unit test, but
test/integration/regression.js
seems like a decent place.Let me know if there's anything you'd like me to change. Thanks.