'use strict';

var path = require('path');

module.exports = function (config) {
  config.set({
    basePath: '',
    frameworks: ['mocha', 'chai'],
    files: [
      'test/src/**/*.js'
    ],
    preprocessors: {
      'test/src/**/*.js': ['webpack']
    },
    webpack: {
      devtool: 'inline-source-map',
      module: {
        loaders: [
          { test: /\.js$/, loader: 'babel-loader' }
        ]
      },
      resolve: {
        alias: {
          'flockn': path.join(process.cwd(), 'dist/common')
        }
      }
    },

    webpackServer: {
      noInfo: true
    },
    
    exclude: [],
    port: 8080,
    logLevel: config.LOG_INFO,
    colors: true,
    autoWatch: false,
    // Start these browsers, currently available:
    // - Chrome
    // - ChromeCanary
    // - Firefox
    // - Opera
    // - Safari (only Mac)
    // - PhantomJS
    // - IE (only Windows)
    browsers: ['PhantomJS'],
    reporters: ['progress'],
    captureTimeout: 60000,
    singleRun: true
  });
};

@@ -159,36 +159,32 @@
 : %5B%0A      'test/
-src/
 **/*.js'%0A    %5D,%0A
@@ -220,12 +220,8 @@
 est/
-src/
 **/*

Update karma configuration