title: jasmine-node - including helper
body: <p>I am trying to test my <a href="https://www.meteor.com/" rel="nofollow">Meteor</a> application with <a href="https://github.com/mhevery/jasmine-node" rel="nofollow">jasmine-node</a>.  I've stubbed out some methods of Meteor framework in the helper (<strong>spec_helper.js</strong>):</p>
  
  <pre><code>  var Meteor = {
      startup: function (newStartupFunction) {
          Meteor.startup = newStartupFunction;
      },
      Collection: function (collectionName) {
          Meteor.instantiationCounts[collectionName] = Meteor.instantiationCounts[collectionName] ?
              Meteor.instantiationCounts[collectionName] + 1 : 1;
      },
      instantiationCounts: {}
    };
  </code></pre>
  
  <p>At this point I need to run the code in <strong>spec_helper.js</strong> (something equivalent of including a module in other languages).  I've tried the following, but no success:</p>
  
  <pre><code>require(['spec_helper'], function (helper) {
      console.log(helper); // undefined
      describe('Testing', function () {
          it('should test Meteor', function () {
              // that's what I want to call from my stubs... 
              // ...it's obviously undefined
              Meteor.startup();
          });
      });
  });
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>