yaymukund/grunt-simple-mocha

Setting working directory

Opened this issue · 1 comments

My tests need to be run from a different working directory than the one where my Gruntfile resides. Is there a way to run mocha through this plugin with a different working directory?

FYI, it does look like selecting files with cwd works, but then when the plugin tries to run those test files, it does not use the cwd working directory.

This also makes it impossible to set NODE_PATH to, for example, './lib' in the Gruntfile so that the require expressions in the tests document how to require the files under test.