title: React / Karma / WebPack not running test
body: <p>My folder structure is (and I have all the correct npm packages installed)</p>
  
  <pre><code>app
    |
    folder1
       reactComponent.js
       |
       testFolder
           reactComponent.spec.js
  </code></pre>
  
  <p>I start my Krama <em>karma.conf.js</em> file as, npm test</p>
  
  <pre><code>var webpack = require('webpack');
  
  module.exports = function (config) {
    config.set({
  
      singleRun: true,
  
      frameworks: ['jasmine'],
      browsers: ['PhantomJS'],
  
      files: [
        'tests.webpack.js'
      ],
  
      preprocessors: {
        'tests.webpack.js': [ 'webpack', 'sourcemap' ]
      },
  
      reporters: [ 'dots' ],
  
      webpack: {
        devtool: 'inline-source-map',
        module: {
          loaders: [
            { test: /\.js$/, loader: 'babel-loader' }
          ]
        }
      },
  
      webpackServer: {
        noInfo: true
      }
  
    });
  };
  </code></pre>
  
  <p><em>tests.webpack.js</em></p>
  
  <pre><code>var context = require.context('../app', true, /\*.spec.js$/);
  context.keys().forEach(context);
  </code></pre>
  
  <p>Both <em>karma.conf.js</em> and <em>tests.webpack.js</em> are running.
  My spec file <em>reactComponent.spec.js</em> is just a simple starter test</p>
  
  <pre><code>describe('Simple test', function() {
      it('returns 1 + 1 = 2 ', function() {
          expect(2).toEqual(1 + 1);
      });
  });
  </code></pre>
  
  <p>But in the command window (Windows 10) I get</p>
  
  <pre><code>D:\development\react\poc9-unittests&gt;npm test
  
  &gt; poc@0.0.0 test D:\development\react\poc9-unittests
  &gt; karma start ./testing/karma.conf.js
  
  24 04 2017 11:27:30.822:INFO [karma]: Karma v1.6.0 server started at http://0.0.0.0:9876/
  24 04 2017 11:27:30.825:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
  24 04 2017 11:27:30.836:INFO [launcher]: Starting browser PhantomJS
  24 04 2017 11:27:33.859:INFO [PhantomJS 2.1.1 (Windows 8 0.0.0)]: Connected on socket YzqWwfSyJoA5P4DbAAAA with id 73371783
  PhantomJS 2.1.1 (Windows 8 0.0.0): Executed 0 of 0 ERROR (0.001 secs / 0 secs)
  npm ERR! Test failed.  See above for more details.
  </code></pre>
  
  <p><em>See above for more details</em> there's nothing to see and there's no log file generated.</p>
  
  <p>In <em>tests.webpack.js</em> if i alter the folder to point to a not existent folder </p>
  
  <pre><code>var context = require.context('../appNonExistentFolder ', true, /\*.spec.js$/);
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>Module not found: Error: Cannot resolve 'file' or 'directory' ../appNonExistentFolder in D:\devel......
  </code></pre>
  
  <p>So it appears I'm running the test runners.
  Is my folder RegExp correct ?</p>
  
  <p>What I'm trying to do is run any .spec.js file in any folder under the root folder of app.</p>
  
  <p>If in my <em>karma.conf.js</em> file I set </p>
  
  <pre><code>   webpackServer: {
        noInfo: false
      }
  </code></pre>
  
  <p>I get a bit more info</p>
  
  <pre><code>Hash: f4683f5fa2953dc3a97c
  Version: webpack 1.15.0
  Time: 61ms
  webpack: Compiled successfully.
  webpack: Compiling...
  Hash: 18eef6f855c83434d040
  Version: webpack 1.15.0
  Time: 1086ms
             Asset     Size  Chunks             Chunk Names
  tests.webpack.js  4.88 kB       0  [emitted]  tests.webpack.js
  chunk    {0} tests.webpack.js (tests.webpack.js) 269 bytes [rendered]
      [0] ./testing/tests.webpack.js 109 bytes {0} [built]
      [1] ./app \*.spec.js$ 160 bytes {0} [built]
  webpack: Compiled successfully.
  </code></pre>