title: Karma is not seeing test files
body: <p>I used to use my SpecRunner.html to run Jasmine tests but I'd like to change it for Karma testrunner. However, I have problems with configuration of Karma + requirejs.</p>
  <p>This is my working tree:</p>
  <p><a href="https://i.stack.imgur.com/WjL8k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WjL8k.png" alt="enter image description here" /></a></p>
  <p>This is my SpecRunner.html file now (working right):</p>
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;meta charset=&quot;utf-8&quot;&gt;
          &lt;title&gt;Jasmine Spec Runner v2.6.4&lt;/title&gt;
          &lt;link rel=&quot;stylesheet&quot; href=&quot;../../node_modules/jasmine-core/lib/jasmine-core/jasmine.css&quot;&gt;
          &lt;script src=&quot;../../node_modules/requirejs/require.js&quot;&gt;&lt;/script&gt;
          &lt;script src=&quot;../../node_modules/jasmine-core/lib/jasmine-core/jasmine.js&quot;&gt;&lt;/script&gt;
          &lt;script src=&quot;../../node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js&quot;&gt;&lt;/script&gt;
          &lt;script src=&quot;../../node_modules/jasmine-core/lib/jasmine-core/boot.js&quot;&gt;&lt;/script&gt;
          &lt;script src=&quot;../../libs/js/10-jquery-2.1.1.js&quot;&gt;&lt;/script&gt;
      &lt;/head&gt;
  &lt;body&gt;
  &lt;script&gt;
      require({
          baseURL: '../',
          paths: {
              spec: 'test',
              src: '../src/',
              jquery: '../../libs/js/10-jquery-2.1.1.js'
          }
      }, ['test', 'custom-test', 'src/custom', 'jquery'], function () {
          jasmine.getEnv().execute();
      });
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>And my Karma config file:</p>
  <pre><code>// Karma configuration
  module.exports = function (config) {
  config.set({
  
  // base path that will be used to resolve all patterns (eg. files, exclude)
  basePath: '',
  
  
  // frameworks to use
  // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
  frameworks: ['jasmine', 'requirejs'],
  
  
  // list of files / patterns to load in the browser
  files: [{
      pattern: 'libs/**/*.js',
      included: true
    },
    {
      pattern: 'angular/core/**/*.js',
      included: true
    },
    {
      pattern: 'angular/app.js',
      included: true
    },
    {
      pattern: 'angular/*.js',
      included: true
    },
    {
      pattern: 'js/src/*.js',
      included: true
    },
    {
      pattern: 'js/test/*.js',
      included: true
    }
  ],
  
  
  // list of files to exclude
  exclude: [],
  
  
  // preprocess matching files before serving them to the browser
  // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
  preprocessors: {},
  
  
  // test results reporter to use
  // possible values: 'dots', 'progress'
  // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  reporters: ['progress'],
  
  
  // web server port
  port: 9876,
  
  
  // enable / disable colors in the output (reporters and logs)
  colors: true,
  
  
  // level of logging
  // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  logLevel: config.LOG_INFO,
  
  
  // enable / disable watching file and executing tests whenever any file changes
  autoWatch: true,
  
  
  // start these browsers
  // available browser launchers: npm install --save-dev karma-phantomjs-launcher
  browsers: [
    'PhantomJS',
    // 'Chrome', 
    // 'Firefox', 
    // 'FirefoxDeveloper', 
    // 'IE'
  ],
  
  plugins: [
    'karma-requirejs',
    'karma-jasmine',
    'karma-phantomjs-launcher',
    'karma-chrome-launcher',
    'karma-firefox-launcher',
    'karma-ie-launcher',
    'karma-coverage'
  ],
  
  // Continuous Integration mode
  // if true, Karma captures browsers, runs the tests and exits
  singleRun: false,
  
  // Concurrency level
  // how many browser should be started simultaneous
  concurrency: Infinity
  })
  }
  </code></pre>
  <p>And require.js config in the main-test.js file:</p>
  <pre><code>require.config({
  baseURL: '../',
  paths: {
      spec: 'test',
      src: '../src/',
      jquery: '../../libs/js/10-jquery-2.1.1.js'
  }
  }, ['test', 'custom-test', 'src/custom', 'jquery'], function () {
  jasmine.getEnv().execute();
  });
  </code></pre>
  <p>When I run Karma now I get this message:</p>
  <blockquote>
  <p>23 06 2017 14:50:13.862:INFO [PhantomJS 2.1.1 (Windows 7 0.0.0)]:
  Connected on socket y4PBKhfyD7iwuxmlAAAA with id 40738505 PhantomJS
  2.1.1 (Windows 7 0.0.0) ERROR   Error: Mismatched anonymous define() module: function () {return e;}<br />
  <a href="http://requirejs.org/docs/errors.html#mismatch" rel="nofollow noreferrer">http://requirejs.org/docs/errors.html#mismatch</a>   at
  node_modules/requirejs/require.js:143</p>
  </blockquote>
  <p>I have no idea what can I change to make it right, I tried various attitudes for a few hours, using Karma and RequireJS documentation but it's still not working.</p>