Error on TestRunner class when adding subdirectories in test directory
nogsantos opened this issue · 0 comments
Hello,
When i try to add some test in a sub directories inside tests directory, I get the following error: ReferenceError: addCommand is not defined
. Reviewing the TestRunner class core/mocha/test_runner.js
on line 32, where the code is return fs.readdirSync(nextDir).forEach(addCommand(nextDir));
, I change the addCommand() methor for addTest() and works for me e.g. return fs.readdirSync(nextDir).forEach(addTest(nextDir));
Sorry if i made a mistake, opening this issue, if it is already a known error. In my case, in tests dir, I added the tests files separated for modules to a better organization. Changing the method, I can add sub of sub directories and the tests works.
Making a search to the method addCommand() i can't found anything, even in fs and path modules, my node version is v6.9.4
and addCommand it's an unknowing method to me.