title: Karma Unit Testing
body: <p>I'm having trouble trying to figure out the reason for this error when trying to start karma:</p>
  
  <pre><code>bash-3.2$ NODE_ENV=test karma start
  INFO [karma]: Karma v0.12.31 server started at http://localhost:9876/
  INFO [launcher]: Starting browser PhantomJS
  INFO [PhantomJS 1.9.8 (Mac OS X)]: Connected on socket FONtQ1oNxIxRecRxYgnS with id 73511945
  PhantomJS 1.9.8 (Mac OS X) ERROR
  ReferenceError: Can't find variable: require
  at /public/components/angular-cookies/index.js:1
  </code></pre>
  
  <p>The index.js file contains:</p>
  
  <pre><code>require('./angular-cookies');
  module.exports = 'ngCookies';
  </code></pre>
  
  <p>Please help!!</p>