<NME> karma.conf.js
<BEF> /*eslint-env node */
var _ = require("lodash");
var webpack = require('webpack');
var path = require('path');
var webpackConfig = require('./webpack.dev');
webpackConfig.devtool = 'cheap-module-source-map';

module.exports = function (config) {
  webpackConfig.resolve.alias = _.omit(webpackConfig.resolve.alias, ['react', 'react-dom', 'create-react-class']);
  var configuration = {
    browsers: ['Chrome'], // ['Chrome'] run in Chrome, 'PhantomJS'
    singleRun: true,
     // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
    frameworks: ['mocha', 'sinon'],
    files: [
      'src/**/*.spec.js'
    ],
    preprocessors: {
      'src/**/*.js': ['webpack', 'sourcemap']
    },
    reporters: ['mocha', 'coverage'],
    webpack: {
      module: {
        rules: webpackConfig.module.rules
       },
       plugins: [
         //new webpack.IgnorePlugin(/jsdom$/),
         new webpack.DefinePlugin( {
             __VERSION__: JSON.stringify('1.0')
         } )
      ],
      externals: {
        'react/addons': true,
        'react/lib/ExecutionEnvironment': true,
        'react/lib/ReactContext': true
      },
      resolve: webpackConfig.resolve
    },
      "src/**/*.js": ["webpack", "sourcemap"],
    },
    },
    coverageReporter: {
      reporters: [
         {
             type: 'text-summary'
         },
         {
             type: 'html',
             dir: 'coverage/'
         }
     ]
    },
    customLaunchers: {
        Chrome_travis_ci: {
            base: 'Chrome',
            flags: ['--no-sandbox']
        }
    },
  };

  if (process.env.TRAVIS) {
      configuration.browsers = ['Chrome_travis_ci'];
  }
  config.set(configuration)
};
      plugins: webpackConfig.plugins,
      externals: {
        "react/addons": true,
        "react/lib/ExecutionEnvironment": true,
        "react/lib/ReactContext": true,
      },
      resolve: webpackConfig.resolve,
    },
    webpackServer: {
      noInfo: true,
    },
    coverageReporter: {
      reporters: [
        {
          type: "text-summary",
        },
        {
          type: "html",
          dir: "coverage/",
        },
      ],
    },
  };

  if (process.env.TRAVIS) {
    configuration.browsers = ["Chrome_travis_ci"];
  }
  config.set(configuration);
};

<MSG> karma works again

<DFF> @@ -1,38 +1,35 @@
 /*eslint-env node */
-var _ = require("lodash");
-var webpack = require('webpack');
-var path = require('path');
-var webpackConfig = require('./webpack.dev');
-webpackConfig.devtool = 'cheap-module-source-map';
+const _ = require("lodash");
+const webpack = require("webpack");
+const path = require("path");
+const webpackConfig = require("./webpack.dev");
+webpackConfig.devtool = "cheap-module-source-map";
 
-module.exports = function (config) {
-  webpackConfig.resolve.alias = _.omit(webpackConfig.resolve.alias, ['react', 'react-dom', 'create-react-class']);
-  var configuration = {
-    browsers: ['Chrome'], // ['Chrome'] run in Chrome, 'PhantomJS'
+module.exports = function(config) {
+  webpackConfig.resolve.alias = _.omit(webpackConfig.resolve.alias, [
+    "react",
+    "react-dom",
+    "create-react-class"
+  ]);
+  const configuration = {
+    browsers: ["Chrome"], // ['Chrome'] run in Chrome, 'PhantomJS'
     singleRun: true,
-     // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
-    frameworks: ['mocha', 'sinon'],
-    files: [
-      'src/**/*.spec.js'
-    ],
+    // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
+    frameworks: ["mocha", "sinon"],
+    files: ["src/**/*.spec.js"],
     preprocessors: {
-      'src/**/*.js': ['webpack', 'sourcemap']
+      "src/**/*.js": ["webpack", "sourcemap"]
     },
-    reporters: ['mocha', 'coverage'],
+    reporters: ["mocha", "coverage"],
     webpack: {
       module: {
         rules: webpackConfig.module.rules
-       },
-       plugins: [
-         //new webpack.IgnorePlugin(/jsdom$/),
-         new webpack.DefinePlugin( {
-             __VERSION__: JSON.stringify('1.0')
-         } )
-      ],
+      },
+      plugins: webpackConfig.plugins,
       externals: {
-        'react/addons': true,
-        'react/lib/ExecutionEnvironment': true,
-        'react/lib/ReactContext': true
+        "react/addons": true,
+        "react/lib/ExecutionEnvironment": true,
+        "react/lib/ReactContext": true
       },
       resolve: webpackConfig.resolve
     },
@@ -41,25 +38,25 @@ module.exports = function (config) {
     },
     coverageReporter: {
       reporters: [
-         {
-             type: 'text-summary'
-         },
-         {
-             type: 'html',
-             dir: 'coverage/'
-         }
-     ]
-    },
-    customLaunchers: {
-        Chrome_travis_ci: {
-            base: 'Chrome',
-            flags: ['--no-sandbox']
+        {
+          type: "text-summary"
+        },
+        {
+          type: "html",
+          dir: "coverage/"
         }
+      ]
     },
+    customLaunchers: {
+      Chrome_travis_ci: {
+        base: "Chrome",
+        flags: ["--no-sandbox"]
+      }
+    }
   };
 
   if (process.env.TRAVIS) {
-      configuration.browsers = ['Chrome_travis_ci'];
+    configuration.browsers = ["Chrome_travis_ci"];
   }
-  config.set(configuration)
+  config.set(configuration);
 };

{'commit': 'diff --git a/client/karma.conf.js b/client/karma.conf.js\nindex 9a25df74..a24c8813 100644\n--- a/client/karma.conf.js\n+++ b/client/karma.conf.js\n@@ -1,38 +1,35 @@\n /*eslint-env node */\n-var _ = require("lodash");\n-var webpack = require(\'webpack\');\n-var path = require(\'path\');\n-var webpackConfig = require(\'./webpack.dev\');\n-webpackConfig.devtool = \'cheap-module-source-map\';\n+const _ = require("lodash");\n+const webpack = require("webpack");\n+const path = require("path");\n+const webpackConfig = require("./webpack.dev");\n+webpackConfig.devtool = "cheap-module-source-map";\n \n-module.exports = function (config) {\n-  webpackConfig.resolve.alias = _.omit(webpackConfig.resolve.alias, [\'react\', \'react-dom\', \'create-react-class\']);\n-  var configuration = {\n-    browsers: [\'Chrome\'], // [\'Chrome\'] run in Chrome, \'PhantomJS\'\n+module.exports = function(config) {\n+  webpackConfig.resolve.alias = _.omit(webpackConfig.resolve.alias, [\n+    "react",\n+    "react-dom",\n+    "create-react-class"\n+  ]);\n+  const configuration = {\n+    browsers: ["Chrome"], // [\'Chrome\'] run in Chrome, \'PhantomJS\'\n     singleRun: true,\n-     // available frameworks: https://npmjs.org/browse/keyword/karma-adapter\n-    frameworks: [\'mocha\', \'sinon\'],\n-    files: [\n-      \'src/**/*.spec.js\'\n-    ],\n+    // available frameworks: https://npmjs.org/browse/keyword/karma-adapter\n+    frameworks: ["mocha", "sinon"],\n+    files: ["src/**/*.spec.js"],\n     preprocessors: {\n-      \'src/**/*.js\': [\'webpack\', \'sourcemap\']\n+      "src/**/*.js": ["webpack", "sourcemap"]\n     },\n-    reporters: [\'mocha\', \'coverage\'],\n+    reporters: ["mocha", "coverage"],\n     webpack: {\n       module: {\n         rules: webpackConfig.module.rules\n-       },\n-       plugins: [\n-         //new webpack.IgnorePlugin(/jsdom$/),\n-         new webpack.DefinePlugin( {\n-             __VERSION__: JSON.stringify(\'1.0\')\n-         } )\n-      ],\n+      },\n+      plugins: webpackConfig.plugins,\n       externals: {\n-        \'react/addons\': true,\n-        \'react/lib/ExecutionEnvironment\': true,\n-        \'react/lib/ReactContext\': true\n+        "react/addons": true,\n+        "react/lib/ExecutionEnvironment": true,\n+        "react/lib/ReactContext": true\n       },\n       resolve: webpackConfig.resolve\n     },\n@@ -41,25 +38,25 @@ module.exports = function (config) {\n     },\n     coverageReporter: {\n       reporters: [\n-         {\n-             type: \'text-summary\'\n-         },\n-         {\n-             type: \'html\',\n-             dir: \'coverage/\'\n-         }\n-     ]\n-    },\n-    customLaunchers: {\n-        Chrome_travis_ci: {\n-            base: \'Chrome\',\n-            flags: [\'--no-sandbox\']\n+        {\n+          type: "text-summary"\n+        },\n+        {\n+          type: "html",\n+          dir: "coverage/"\n         }\n+      ]\n     },\n+    customLaunchers: {\n+      Chrome_travis_ci: {\n+        base: "Chrome",\n+        flags: ["--no-sandbox"]\n+      }\n+    }\n   };\n \n   if (process.env.TRAVIS) {\n-      configuration.browsers = [\'Chrome_travis_ci\'];\n+    configuration.browsers = ["Chrome_travis_ci"];\n   }\n-  config.set(configuration)\n+  config.set(configuration);\n };\n', 'commit_subject': 'karma works again', 'repo_name': 'FredericHeem/starhackit', 'committer': {'name': 'Frederic Heem', 'email': '4242967786847a6242c2592a468282dc024287fa@gmail.com', 'time_sec': '1522368105', 'tz_offset': '60', 'date': {'seconds': '1522368105'}}, 'commit_tree': '794aaf627995fbfc14c2982d824cfbedb06e80f5', 'commit_message': 'karma works again\n', 'language_name': 'JavaScript', 'license': 'unlicense', 'hunks': '@@ -1,38 +1,35 @@\n /*eslint-env node */\n-var _ = require("lodash");\n-var webpack = require(\'webpack\');\n-var path = require(\'path\');\n-var webpackConfig = require(\'./webpack.dev\');\n-webpackConfig.devtool = \'cheap-module-source-map\';\n+const _ = require("lodash");\n+const webpack = require("webpack");\n+const path = require("path");\n+const webpackConfig = require("./webpack.dev");\n+webpackConfig.devtool = "cheap-module-source-map";\n \n-module.exports = function (config) {\n-  webpackConfig.resolve.alias = _.omit(webpackConfig.resolve.alias, [\'react\', \'react-dom\', \'create-react-class\']);\n-  var configuration = {\n-    browsers: [\'Chrome\'], // [\'Chrome\'] run in Chrome, \'PhantomJS\'\n+module.exports = function(config) {\n+  webpackConfig.resolve.alias = _.omit(webpackConfig.resolve.alias, [\n+    "react",\n+    "react-dom",\n+    "create-react-class"\n+  ]);\n+  const configuration = {\n+    browsers: ["Chrome"], // [\'Chrome\'] run in Chrome, \'PhantomJS\'\n     singleRun: true,\n-     // available frameworks: https://npmjs.org/browse/keyword/karma-adapter\n-    frameworks: [\'mocha\', \'sinon\'],\n-    files: [\n-      \'src/**/*.spec.js\'\n-    ],\n+    // available frameworks: https://npmjs.org/browse/keyword/karma-adapter\n+    frameworks: ["mocha", "sinon"],\n+    files: ["src/**/*.spec.js"],\n     preprocessors: {\n-      \'src/**/*.js\': [\'webpack\', \'sourcemap\']\n+      "src/**/*.js": ["webpack", "sourcemap"]\n     },\n-    reporters: [\'mocha\', \'coverage\'],\n+    reporters: ["mocha", "coverage"],\n     webpack: {\n       module: {\n         rules: webpackConfig.module.rules\n-       },\n-       plugins: [\n-         //new webpack.IgnorePlugin(/jsdom$/),\n-         new webpack.DefinePlugin( {\n-             __VERSION__: JSON.stringify(\'1.0\')\n-         } )\n-      ],\n+      },\n+      plugins: webpackConfig.plugins,\n       externals: {\n-        \'react/addons\': true,\n-        \'react/lib/ExecutionEnvironment\': true,\n-        \'react/lib/ReactContext\': true\n+        "react/addons": true,\n+        "react/lib/ExecutionEnvironment": true,\n+        "react/lib/ReactContext": true\n       },\n       resolve: webpackConfig.resolve\n     },\n@@ -41,25 +38,25 @@ module.exports = function (config) {\n     },\n     coverageReporter: {\n       reporters: [\n-         {\n-             type: \'text-summary\'\n-         },\n-         {\n-             type: \'html\',\n-             dir: \'coverage/\'\n-         }\n-     ]\n-    },\n-    customLaunchers: {\n-        Chrome_travis_ci: {\n-            base: \'Chrome\',\n-            flags: [\'--no-sandbox\']\n+        {\n+          type: "text-summary"\n+        },\n+        {\n+          type: "html",\n+          dir: "coverage/"\n         }\n+      ]\n     },\n+    customLaunchers: {\n+      Chrome_travis_ci: {\n+        base: "Chrome",\n+        flags: ["--no-sandbox"]\n+      }\n+    }\n   };\n \n   if (process.env.TRAVIS) {\n-      configuration.browsers = [\'Chrome_travis_ci\'];\n+    configuration.browsers = ["Chrome_travis_ci"];\n   }\n-  config.set(configuration)\n+  config.set(configuration);\n };\n', 'addition_count': 38, 'deletion_count': 41, 'src_file': 'a/client/karma.conf.js', 'tgt_file': 'b/client/karma.conf.js', 'file_extension': '.js', 'before_file': '/*eslint-env node */\nvar _ = require("lodash");\nvar webpack = require(\'webpack\');\nvar path = require(\'path\');\nvar webpackConfig = require(\'./webpack.dev\');\nwebpackConfig.devtool = \'cheap-module-source-map\';\n\nmodule.exports = function (config) {\n  webpackConfig.resolve.alias = _.omit(webpackConfig.resolve.alias, [\'react\', \'react-dom\', \'create-react-class\']);\n  var configuration = {\n    browsers: [\'Chrome\'], // [\'Chrome\'] run in Chrome, \'PhantomJS\'\n    singleRun: true,\n     // available frameworks: https://npmjs.org/browse/keyword/karma-adapter\n    frameworks: [\'mocha\', \'sinon\'],\n    files: [\n      \'src/**/*.spec.js\'\n    ],\n    preprocessors: {\n      \'src/**/*.js\': [\'webpack\', \'sourcemap\']\n    },\n    reporters: [\'mocha\', \'coverage\'],\n    webpack: {\n      module: {\n        rules: webpackConfig.module.rules\n       },\n       plugins: [\n         //new webpack.IgnorePlugin(/jsdom$/),\n         new webpack.DefinePlugin( {\n             __VERSION__: JSON.stringify(\'1.0\')\n         } )\n      ],\n      externals: {\n        \'react/addons\': true,\n        \'react/lib/ExecutionEnvironment\': true,\n        \'react/lib/ReactContext\': true\n      },\n      resolve: webpackConfig.resolve\n    },\n      "src/**/*.js": ["webpack", "sourcemap"],\n    },\n    },\n    coverageReporter: {\n      reporters: [\n         {\n             type: \'text-summary\'\n         },\n         {\n             type: \'html\',\n             dir: \'coverage/\'\n         }\n     ]\n    },\n    customLaunchers: {\n        Chrome_travis_ci: {\n            base: \'Chrome\',\n            flags: [\'--no-sandbox\']\n        }\n    },\n  };\n\n  if (process.env.TRAVIS) {\n      configuration.browsers = [\'Chrome_travis_ci\'];\n  }\n  config.set(configuration)\n};\n      plugins: webpackConfig.plugins,\n      externals: {\n        "react/addons": true,\n        "react/lib/ExecutionEnvironment": true,\n        "react/lib/ReactContext": true,\n      },\n      resolve: webpackConfig.resolve,\n    },\n    webpackServer: {\n      noInfo: true,\n    },\n    coverageReporter: {\n      reporters: [\n        {\n          type: "text-summary",\n        },\n        {\n          type: "html",\n          dir: "coverage/",\n        },\n      ],\n    },\n  };\n\n  if (process.env.TRAVIS) {\n    configuration.browsers = ["Chrome_travis_ci"];\n  }\n  config.set(configuration);\n};\n', 'message': 'karma works again\n', 'author_name': 'Frederic Heem', 'lang': 'conf'}