mcandre mcandre - 1 year ago 67
Node.js Question

Is there a .mocha file where I can specify defaults such as --no-colors?

I'd like to set some defaults for mocha without having to type them each time. Does mocha look for a config file / dotfile anywhere, as jshint looks for

and npm looks for

Answer Source

Yes. You can create a file ./test/mocha.opts and in the file you can specify --no-colors.

See mocha.opts on Mocha Doc for more information.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download