Add ability to set MOCHA_GLOBAL_TIMEOUT, without success.#33
Conversation
aldeed
left a comment
There was a problem hiding this comment.
Overall looks good, but see my comment about the default
| mochaOptions: { | ||
| grep: MOCHA_GREP || false, | ||
| invert: !!MOCHA_INVERT, | ||
| timeout: MOCHA_GLOBAL_TIMEOUT || 2000, |
There was a problem hiding this comment.
I don't think there should be a 2000 default here. Any reason not to just let this be undefined and let the mocha default apply?
|
It's possible that setting |
3c6cf39 to
2217ac3
Compare
|
@aldeed Totally agree on the default, thx for catching that. For some reason that I haven't figured out yet, setting the Any ideas why? Given those circumstances, I see two ways to fix it, happy to have a shot at option B) if you feel like it's cleaner: A) Merge practicalmeteor/meteor-mocha-core#9 and document the choice of supported "pass-thru" environment variable name here in B) Instantiate Any better ideas? |
|
@aldeed would this be fixed both for server and for client tests by resolving practicalmeteor/meteor-mocha-core#9? |
|
I suggest doing a new version of that PR against the meteortesting fork and then option A. Not sure if that will fix, and it might be different now with newer mocha, too. |
|
Fixed by setting the option in https://github.com/meteortesting/meteor-mocha-core. I've added your text to the readme though 😉 |
FIXME: Looks like
mochaInstance.options.timeoutdoes not pass the timeout to mocha.Related to practicalmeteor/meteor-mocha-core#9?