When using the --recursive
flag with mocha
, what is the best method to ignore subdirectories within test/
?
As an example, I have a test/x
, test/y
, test/z
directory containing tests, more of which can be added and removed all the time (so maintaining a whitelist would be tedious).
I also have test/utilities
and test/integration
which contain code I don't want executed by mocha.