title: Webstorm IDE and mocha tests using global.expect
body: <p>I currently run the following command to run my mocha tests:</p>
  
  <pre><code>./node_modules/.bin/mocha --require ./my.js
  </code></pre>
  
  <p>and in the js file, I am using sinon and expect for SpyOn...</p>
  
  <pre><code>global.expect = require('must');
  global.sinon = require('sinon');
  </code></pre>
  
  <p>How do I configure the Mocha task runner to use this external file.
  Using <code>--require ./my.js</code> I still see <code>ReferenceError: spyOn is not defined</code></p>
  
  <p>Any thoughts on this?</p>