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

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -