The hierarchy of my project test files is: app/test/services/<some sub_dir>/blahblah.test.js
And I get the following error:
Error: Cannot find module '/mnt/data/bamboo-home/xml-data/build-dir/ESR-WRITETEST1-JOB1/app/test/services'
Nevertheless, when I SSH into the Bamboo app on the hosting service, I can see that the files do exist in the build dirs. And furthermore, why does it say cannot find MODULE ?
The task in which this fails is a Mocha Test Runner task. The configuration is the following:
Screen Shot 2016-12-19 at 17.11.25.png
When I execute the tests locally, I run the following command:
"NODE_ENV=test mocha --recursive test/* test/**/*"