title: Testing Typescript Generated Classes with node.js, Mocha and mocha-jsdom?
body: <p>I would like to run unit tests from bash to test my Typescript generated Javascript classes using mocha and mocha-jsdom.  I'm using mocha-jsdom because I want to emulate the dom in my tests but run unit tests from bash.</p>
  
  <p>I've seen a few examples where they use the frontend testing framework for mocha in a browser, but I haven't seen any where they are run from bash.</p>
  
  <p>It appears that I am unable to include the Javascript classes generated from Typescript in my mocha unit tests.</p>
  
  <pre><code>var jsdom = require('../../index'); 
  require('../../src/js/acct/AccountManager.js');
  
  describe('GenerateHTML', function() {
    describe('#generateHTML()', function() {
  
      jsdom()
  
      it('should generate a table', function() {
          var vahm = new VerticalAccountHTMLManager(document, "testId");
  
          expect($("#testId")[0]).eql("table");   
      }); 
    });
  });
  </code></pre>
  
  <p>Is there any way to import the functions that create the classes into the mocha unit test while still running it from bash?</p>