title: Webpack and Karma Testing: Uncaught ReferenceError: jQuery is not defined using
body: <p>I am having a weird issue with this library. I have set up my webpack to have an externals </p>
  
  <pre><code>  externals: {
      jquery: 'jQuery'
    },
  </code></pre>
  
  <p>this causes an error when i run <code>npm test</code> removing it allows my tests to run through karma correctly. However if i remove it, it doesn't allow me to run my foundation in my app.jsx </p>
  
  <pre><code>require('style!css!foundation-sites/dist/foundation.min.css')
  $('document').foundation(); //This is where it errors
  </code></pre>
  
  <p>So if i remove the jquery external i get an error when i render at that point. If i add the externals jquery: 'jQuery' it breaks the testing. Anyone have any idea how to fix it. jQuery is part of my npm modules.</p>