module.exports = function(config) {
  config.set({

    basePath: '',

    frameworks: ['mocha'],

    files: [
      'specs/main.js'
    ],

    exclude: [],

    preprocessors: {
      'specs/main.js': ['webpack']
    },

    webpack: {
      cache: true,
      // TODO: figure out how to get source maps in here, none of this works
      //devtool: {
        //'inline-source-map': true,
        //inlineSourceMap: true
      //},
      module: {
        loaders: [
          {test: /\.js$/, loader: 'jsx-loader'}
        ]
      }
    },

    webpackServer: {
      stats: {
        colors: true
      }
    },

    reporters: ['progress'],

    port: 9876,

    colors: true,

    logLevel: config.LOG_INFO,

    autoWatch: true,

    browsers: ['Chrome'],

    captureTimeout: 60000,

    singleRun: false,

    plugins: [
      require("karma-mocha"),
      require("karma-chrome-launcher"),
      require("karma-firefox-launcher"),
      require("karma-webpack")
    ]
  });
};

@@ -261,176 +261,36 @@
     
-// TODO: figure out how to get source maps in here, none of this works%0A      //devtool: %7B%0A        //'inline-source-map': true,%0A        //inlineSourceMap: true%0A      //%7D
+devtool: 'inline-source-map'
 ,%0A  

Enable source maps in tests