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 -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -