Mocha tries to find test files under test by default, how do I specify another dir, e.g. server-test?
test
server-test
Use this:
mocha server-test
Or if you have subdirectories use this:
mocha "server-test/**/*.js"
Note the use of double quotes. If you omit them you may not be able to run tests in subdirectories.
2.1m questions
2.1m answers
60 comments
57.0k users