title: Bootstrapping a Mocha test suite
body: <p>I have numerous tests spread across multiple files in a Node JS application.  I'd like to run bootstrap code prior to Mocha's execution of any of the test files.  This is so that I can, for example, set globals to be used in each of the actual tests.</p>
  
  <h2>Sample bootstrap code</h2>
  
  <pre><code>global.chai = require('chai');
  global.expect = chai.expect;
  global.sinon = require('sinon');
  </code></pre>
  
  <p>It seems Mocha loads all files under /test alphabetically, so if I name this bootstrap code "bootstrap.js" and everything else with a starting letter after "B" it "works".</p>
  
  <p>Obviously this is fragile and sucky, but I don't want to put this boilerplate requiring of my supporting libraries at the top of every test file.</p>
  
  <p>How do I tell Mocha to load a bootstrap script first, or create something functionally equivalent?</p>