/* eslint indent: [ "warn", 2 ] */

// Karma configuration
// http://karma-runner.github.io/0.10/config/configuration-file.html

module.exports = function(config) {
  config.set({
    // base path, that will be used to resolve files and exclude
    basePath: '',

    // testing framework to use (jasmine/mocha/qunit/...)
    frameworks: ['jasmine'],

    // list of files / patterns to load in the browser
    files: [
      'dist/js/vendor.*.js',
      'dist/js/stats.*.js',
      'dist/js/scripts.recapSituation.*.js',
      'dist/js/scripts.*.js',
      'node_modules/angular-mocks/angular-mocks.js',
      // FIXME Can't find variable: moment
      'node_modules/moment/moment.js',
      'test/spec/**/*.js',
    ],

    // list of files / patterns to exclude
    exclude: [
    ],

    // web server port
    port: 8002,

    // level of logging
    // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
    logLevel: config.LOG_INFO,

    // enable / disable watching file and executing tests whenever any file changes
    autoWatch: false,

    // Start these browsers, currently available:
    // - Chrome
    // - ChromeCanary
    // - Firefox
    // - Opera
    // - Safari (only Mac)
    // - PhantomJS
    // - IE (only Windows)
    browsers: ['PhantomJS'],


    // Continuous Integration mode
    // if true, it capture browsers, run tests and exit
    singleRun: true
  });
};

@@ -122,16 +122,839 @@
 e.html%0A%0A
+// https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables%0Avar isCircleCI = process.env.CIRCLECI && process.env.CIRCLECI === 'true';%0Avar useProductionAssets = isCircleCI %7C%7C process.env.NODE_ENV === 'production';%0A%0Avar files = %5B%5D;%0Aif (useProductionAssets) %7B%0A    files = %5B%0A        // On CircleCI, we test against production build%0A        'dist/js/vendor.*.js',%0A        'dist/js/stats.*.js',%0A        'dist/js/scripts.recapSituation.*.js',%0A        'dist/js/scripts.*.js',%0A    %5D;%0A%7D else %7B%0A    // TODO Make sure Webpack DevServer is running (?)%0A    files = %5B%0A        // Serve files from Webpack DevServer%0A        'http://localhost:8080/js/vendor.js',%0A        'http://localhost:8080/js/stats.js',%0A        'http://localhost:8080/js/scripts.recapSituation.js',%0A        'http://localhost:8080/js/scripts.js',%0A    %5D;%0A%7D%0A%0A
 module.e
@@ -1238,141 +1238,22 @@
 es: 
-%5B%0A      'dist/js/vendor.*.js',%0A      'dist/js/stats.*.js',%0A      'dist/js/scripts.recapSituation.*.js',%0A      'dist/js/scripts.*.js',
+files.concat(%5B
 %0A   
@@ -1411,21 +1411,22 @@
 /*.js',%0A
-
     %5D
+)
 ,%0A%0A    /

Use Webpack DevServer in Karma.