title: Karma/Jasmine times out without running tests
body: <p>I'm trying to run Karma/Jasmine from Grunt on a project generated with 
  <a href="http://newtriks.com/2013/12/31/automating-react-with-yeoman-and-grunt/" rel="noreferrer">http://newtriks.com/2013/12/31/automating-react-with-yeoman-and-grunt/</a></p>
  
  <p>Karma launches PhantomJS (or Chrome) and, depending on singleRun, it either times out or just sits there and does nothing. I've tried changing <code>captureTimeout</code> and <code>browserNoActivityTimeout</code> based on reading solutions from people with similar problems, but it doesn't seem to work.</p>
  
  <p>My relevant pacakge versions etc.:</p>
  
  <ul>
  <li>NodeJS: 0.10.25</li>
  <li>Karma: 0.12.16</li>
  <li>Webpack: 1.1.11</li>
  <li>webpack-dev-server: 1.4.1</li>
  <li>karma-jasmine: 0.1.5</li>
  <li>Linux: Ubuntu 14.04</li>
  </ul>
  
  <p>I've found <a href="https://stackoverflow.com/questions/23667102/disconnected-1-times-because-no-message-in-10000-ms-using-karma-jasmine">someone with the same problem</a> on OS X: </p>
  
  <p>I've tried updating all my dev dependencies to the latest versions but the problem still remains.</p>
  
  <p>My console output is below. The webpack lines referring to <em>bundle is now VALID/INVALID</em> are worrying, but I can't find any info on what they mean. Here's my console output:</p>
  
  <pre><code>Running "karma:unit" (karma) task
  DEBUG [config]: autoWatch set to false, because of singleRun
  DEBUG [plugin]: Loading karma-* from /home/ed/workspace/wwb-app/node_modules
  DEBUG [plugin]: Loading plugin /home/ed/workspace/wwb-app/node_modules/karma-chrome-launcher.
  DEBUG [plugin]: Loading plugin /home/ed/workspace/wwb-app/node_modules/karma-coffee-preprocessor.
  DEBUG [plugin]: Loading plugin /home/ed/workspace/wwb-app/node_modules/karma-firefox-launcher.
  DEBUG [plugin]: Loading plugin /home/ed/workspace/wwb-app/node_modules/karma-html2js-preprocessor.
  DEBUG [plugin]: Loading plugin /home/ed/workspace/wwb-app/node_modules/karma-jasmine.
  DEBUG [plugin]: Loading plugin /home/ed/workspace/wwb-app/node_modules/karma-phantomjs-launcher.
  DEBUG [plugin]: Loading plugin /home/ed/workspace/wwb-app/node_modules/karma-requirejs.
  DEBUG [plugin]: Loading plugin /home/ed/workspace/wwb-app/node_modules/karma-script-launcher.
  DEBG [plugin]: Loading plugin /home/ed/workspace/wwb-app/node_modules/karma-webpack-plugin.
  INFO [karma]: Karma v0.12.16 server started at  http://localhost:8080/
  INFO [launcher]: Starting browser PhantomJS
  DEBUG [temp-dir]: Creating temp dir at /tmp/karma-98204612
  DEBUG [launcher]: /home/ed/workspace/wwb-app/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/bin/phantomjs /tmp/karma-98204612/capture.js
  Hash: 89285186567c1bc5bb7f
  Version: webpack 1.1.11
  Time: 2ms
  Asset  Size  Chunks       Chunk Names
  webpack: bundle is now VALID.
  webpack: bundle is now INVALID.
  DEBUG [web-server]: serving: /home/ed/workspace/wwb-app/node_modules/karma/static/client.html
  DEBUG [web-server]: serving: /home/ed/workspace/wwb-app/node_modules/karma/static/karma.js
  DEBUG [web-server]: upgrade /socket.io/1/websocket/CjC8pnQq5It2z_kWYB98
  DEBUG [karma]: A browser has connected on socket CjC8pnQq5It2z_kWYB98
  INFO [PhantomJS 1.9.7 (Linux)]: Connected on socket CjC8pnQq5It2z_kWYB98 with id 98204612
  DEBUG [launcher]: PhantomJS (id 98204612) captured in 1.704 secs
  WARN [PhantomJS 1.9.7 (Linux)]: Disconnected (1 times), because no message in 30000 ms.
  
  DEBUG [karma]: Run complete, exitting.
  DEBUG [launcher]: Disconnecting all browsers
  DEBUG [launcher]: Process PhantomJS exited with code 0
  DEBUG [temp-dir]: Cleaning temp dir /tmp/karma-98204612
  Warning: Task "karma:unit" failed. Use --force to continue.
  
  Aborted due to warnings.
  </code></pre>
  
  <p>Here's my <code>karma.conf.js</code> file:</p>
  
  <pre><code>'use strict';
  
  module.exports = function (config) {
  config.set({
      basePath: '',
      frameworks: ['jasmine'],
      files: [
          'test/helpers/**/*.js',
          'test/spec/components/**/*.js'
      ],
      preprocessors: {
          'test/spec/components/**/*.js': ['webpack']
      },
      webpack: {
          cache: true,
          module: {
              loaders: [{
                  test: /\.css$/,
                  loader: 'style!css'
              }, {
                  test: /\.gif/,
                  loader: 'url-loader?limit=10000&amp;minetype=image/gif'
              }, {
                  test: /\.jpg/,
                  loader: 'url-loader?limit=10000&amp;minetype=image/jpg'
              }, {
                  test: /\.png/,
                  loader: 'url-loader?limit=10000&amp;minetype=image/png'
              }, {
                  test: /\.js$/,
                  loader: 'jsx-loader'
              }]
          }
      },
      webpackServer: {
          stats: {
              colors: true
          }
      },
      exclude: [],
      port: 8080,
      logLevel: config.LOG_DEBUG,
      colors: true,
      autoWatch: true,
      // Start these browsers, currently available:
      // - Chrome
      // - ChromeCanary
      // - Firefox
      // - Opera
      // - Safari (only Mac)
      // - PhantomJS
      // - IE (only Windows)
      browsers: ['PhantomJS'],
      reporters: ['progress'],
      captureTimeout: 60000,
      browserNoActivityTimeout: 60000,
      singleRun: true
  });
  };
  </code></pre>