I am looking for away to do something like this:
package.json
...
"scripts":{
"debug_mocha_test":"node-debug ./node_modules/mocha/bin/_mocha --grep ${names}"
}
...
so then at the command line, I can then run something like:
npm run debug_mocha_test --names 'test1'
or whatever
does anyone know how to do this, or is there a better way than this?
For some context, the mocha testing library has a --grep function like so: