The default is ./test/mocha.opts . You can pass a custom path with the --opts :
mocha --opts ./mocha.opts
Useful if you do not store your tests in the test/ folder, but, for example, next to the code files.
Any name and extension seems to work, so you can even make mocha --opts .mocharc if you want it to work well with .jshintrc , .babelrc , etc.
gabssnake Jun 13 '16 at 15:07 2016-06-13 15:07
source share