title: TypeScript Karma Jamsine Test "exports is not defined" with simpletsc preprocessor
body: <p>In order to learn how to create my own NPM module, I'm first trying to create a simple NPM module written in TypeScript that would just provide an interface &amp; class that has a very simple method sayHi() that just returns "Hello World". I wanted to try creating the module so that I could pull it into an Angular 2 app using NPM and then try calling the method.</p>
  
  <p>The build to the dist folder works fine and it is able to be pulled into a sample Angular 2 application and used without any problems.</p>
  
  <p>I wanted to make sure that my code was tested, so I tried adding the Karma spec runner using the Jasmine framework. I followed the Karma <a href="http://karma-runner.github.io/1.0/intro/installation.html" rel="nofollow noreferrer">installation guide</a> and initialized my Karma.conf.js and finally, I added the <a href="https://www.npmjs.com/package/karma-simpletsc-preprocessor" rel="nofollow noreferrer">Simple TSC Preprocessor</a> to process the TypeScript files. The problem is that when I run the test, I get the following error:</p>
  
  <pre><code>Chrome 56.0.2924 (Windows 10 0.0.0) ERROR
    Uncaught ReferenceError: exports is not defined
    at index.js:10
  </code></pre>
  
  <p>All the code and settings can be found on GitHub at <a href="https://github.com/holotrek/hello-world-npm-module" rel="nofollow noreferrer">https://github.com/holotrek/hello-world-npm-module</a></p>