javascript - How can I run mocha tests by using a regex for matching on file names? -


i trying run multiple js tests using mocha. want match on filenames using regex, according documentation can use regex match on describe blocks. of spec files named *.spec.js, assume able run files easily. there way/plugin can match on filenames end in .spec.js?

you can pass glob expression mocha this:

mocha *.spec.js

if not specify glob defaults mocha test/*.js.

the regexp refering "grep" option works on test names.


Comments

Popular posts from this blog

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

clojure - 'get' replacement that throws exception on not found? -