-
Notifications
You must be signed in to change notification settings - Fork 19
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
Install Mocha as a development dependency #65
Conversation
Oops, accidentally deleted my branch! Sorry for spam |
Looks good to me, but I'll let @basicallydan sign off on this one |
Probably a stupid question: doesn't Mocha require global installation to If I'm wrong, that's a great idea!
|
I had a feeling that there was more to this. Glad I didn't just merge. 😁 |
Mocha's fine as a local dependency, running it like this in all of mine and my company's projects :) you just need to reference the bin within Same with JSHint et al. |
Realise that's quite anecdotal. More solid example: Express includes Mocha in the dev dependencies, and that project was created by the author of Mocha https://github.com/strongloop/express/blob/master/package.json |
I see. That's a good idea. Okay. Also means we can control the version I
|
I'll merge as the code looks like a simple change. |
Install Mocha as a development dependency
I don't know if you're adverse to this, but it means one less step for new contributors if you install Mocha as a development dependency. It caught me out for just a second :)