node.js - Node Tools for Visual Studio Mocha tests not finding Mocha module -
i have node project i've imported visual studio web storm. mocha tests run fine in web storm in visual studio don't run @ all. i've set test framework on relevant files , test discovery phase correctly locates them. when run tests green tick if modify system such must fail. if click on output test see error:
ntvs_error: failed find mocha package. mocha must installed in project locally...
i have installed mocha locally, uninstalled , re-installed no difference.
i've managed more specific error information editing mocha.js file print out what's going wrong. problem occurs during detectmocha function. exception in log is:
[error: cannot find module 'c:\projects\fastlanevs"\node_modules\mocha'] code: 'module_not_found'
now assumption double quote after project directory problem. i've gone run_tests.js , printed out argv array see project directory coming , indeed it's appended time function called.
now i'm happy accept i've done , added quote somewhere can't find it. don't understand why find_tests should work since calls same method , passes project directory in correctly.
in project it's directory listed . , i've checked both sln , nsproj files in notepad++ try , find spurious double quote.
i'm using vs pro 2013 update 4 node tools 1.0.21029.05
i modify mocha runner trim trailing double quote ideas on how can correctly fix great.
Comments
Post a Comment