/* globals module */

module.exports = function(config) {
  config.set({
    basePath: '',
    frameworks: ['browserify', 'mocha', 'chai', 'sinon'],
    files: [
      'src/js/**/*.js',
      'test/**/*.spec.js',
      'node_modules/jquery/dist/jquery.min.js'
    ],
    exclude: [
    ],
    preprocessors: {
      'src/js/**/*.js': ['browserify'],
      'test/**/*.js': ['browserify']
    },
    browserify: {
      transform: ['babelify', 'browserify-istanbul']
    },
    reporters: ['notify', 'nyan', 'coverage'],
    port: 9876,
    colors: true,
    logLevel: config.LOG_INFO,
    autoWatch: true,
    browsers: ['PhantomJS'],
    singleRun: false,
    concurrency: Infinity
  });
};

@@ -1,26 +1,4 @@
-/* globals module */%0A%0A
 modu
@@ -401,16 +401,25 @@
 sform: %5B
+%0A        
 'babelif
@@ -421,17 +421,33 @@
 belify',
- 
+%0A        require(
 'browser
@@ -459,16 +459,89 @@
 stanbul'
+)(%7B%0A          instrumenterConfig: %7B embedSource: true %7D%0A        %7D)%0A      
 %5D%0A    %7D,

update browserify-istanbul to deliver es5 code istead of source