-
-
Save timoxley/1721593 to your computer and use it in GitHub Desktop.
// this will find all files ending with _test.js and run them with Mocha. Put this in your package.json | |
"scripts": { | |
"test": "find ./tests -name '*_test.js' | xargs mocha -R spec" | |
}, | |
it works for me to wrap glob path into quotes
"scripts": { "test": "mocha \"test/**/*.spec.js\"" }
🖖
it works for me to wrap glob path into quotes
"scripts": { "test": "mocha \"test/**/*.spec.js\"" }
Thanks, it worked! 👌
anyone among you does web automation with mocha framework with java script?I cant find enough source online.I need help!
anyone among you do web automation with a mocha framework with javascript?I can't find enough sources online. I need help!
@alitarlaaci1981 you can connect me in this regard, I use mocha with JS.
[email protected]
it works for me to wrap glob path into quotes
"scripts": { "test": "mocha \"test/**/*.spec.js\"" }
👍
it works for me to wrap glob path into quotes
"scripts": { "test": "mocha \"test/**/*.spec.js\"" }🖖
OMG, Thank you!
Without escaped quotes, it behaves totally different, and I thought that I have issues with NYC. I could not generate a proper code coverage report, and it derived me nearly insane.
for me its working using --recursive
"scripts": {
"test": "mocha --recursive --exit"
}
Thank you very much!