I currently run mocha tests with npm scripts like
mocha test/mocha.js test/crc/mocha.js test/multibyte/test.js
I added additional three test files and I start to wonder maybe use configuration file like .mocharc.js
, and call simply mocha
, but what ever I try mocha always runs all .js files in "test" folder.
- I started with this tutorial where they use
file
property, but it wont work. - Some SO answer points me to mocha example on github where they use
watch-files
property but it still wont work. - I tried use absolute path, relative path
- according to mocha official documentation I should use
file
property, but it wont work
All this is so confusing and I cant find any config file documentation, more than what file names should I use.
Does anyone knows how I can run just these three test-files with config file ?
I know I can use npm script like before, but maybe there is way ?