Just like this question I'm trying to run Mocha tests via Karma in NW.js.
However my tests aren't running as window.mocha isn't defined.
Uncaught TypeError: Cannot read property 'setup' of undefined
at node_modules/karma-mocha/lib/adapter.js:250
Is it possible to do something like window.mocha = window.mocha || require("mocha") in the Adapter? Any other tips/suggestions.