If in node.js, some new configurations as of Mocha v6:
Option 1: Create .mocharc.json
in project's root directory:
{
"spec": "path/to/test/files"
}
Option 2: add mocha
property in project's package.json
:
{
...
"mocha": {
"spec": "path/to/test/files"
}
}
More options are here.