Mocha: Allow users to specify ignored directories for the -w option or ignore all hidden directories

Created on 27 Jun 2013  路  2Comments  路  Source: mochajs/mocha

Currently 'node_modules' and '.git' are excluded per default. It would be nice if the user could add more ignore paths. Alternatively, maybe all hidden directories should be ignored per default.

Most helpful comment

Something that --watch currently has going for it is _speed_. Especially if you have e.g. Babel doing transpilation, invoking mocha separately for each test run is _immensely_ slower than the re-run watch mode does.

Ideas on how to work around this with an external watcher?

All 2 comments

gets too complicated, --watch needs to be completely thrown out and put into a stand-alone lib so jade/coffeescript/stylus/mocha/everything-else can stop re-inventing

Something that --watch currently has going for it is _speed_. Especially if you have e.g. Babel doing transpilation, invoking mocha separately for each test run is _immensely_ slower than the re-run watch mode does.

Ideas on how to work around this with an external watcher?

Was this page helpful?
0 / 5 - 0 ratings