text: // Karma configuration
  // Generated on Wed Nov 23 2016 15:54:23 GMT+0800 (CST)
  
  module.exports = function(config) {
    config.set({
  
      // base path that will be used to resolve all patterns (eg. files, exclude)
      basePath: './',
  
  
      // frameworks to use
      // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
      frameworks: ['mocha', 'chai', 'expect'],
  
  
      // list of files / patterns to load in the browser
      files: [
        // 'src/modules/**/*.js',
        'src/integration-test/**/*spec.js',
      ],
  
      // list of files to exclude
      exclude: [
        'src/**/*.test.js'
      ],
  
  
      // preprocess matching files before serving them to the browser
      // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
      preprocessors: {
        // 'src/modules/**/*.js': ['webpack'],
        'src/integration-test/**/*.js': ['webpack'],
      },
  
      // plugins: [
      //   'karma-webpack',
      //   'karma-mocha',
      //   'karma-chai',
      //   'karma-expect',
      //   'karma-mocha-reporter',
      //   'karma-commonjs',
      //   'karma-chrome-launcher'
      // ],
  
      webpack: {
        module: {
          loaders: [
            {
              test: /\.js$/,
              loaders: ['babel'],
              exclude: /node_modules/,
            },
            {
              test: /\.json$/i,
              loader: 'json',
            },
            {
              test: /\.ogg$/,
              loader: 'url?publicPath=./&name=audio/[name]_[hash].[ext]',
            },
          ],
        },
      },
  
      webpackMiddleware: {
        noInfo: true,
        stats: {
          chunks: false,
        },
      },
      // test results reporter to use
      // possible values: 'dots', 'progress'
      // available reporters: https://npmjs.org/browse/keyword/karma-reporter
      reporters: ['mocha', 'html'],
  
      htmlReporter: {
        outputDir: 'karma', // where to put the reports
        templatePath: null, // set if you moved jasmine_template.html
        focusOnFailures: true, // reports show failures on start
        namedFiles: false, // name files instead of creating sub-directories
        pageTitle: null, // page title for reports; browser info by default
        urlFriendlyName: false, // simply replaces spaces with _ for files/dirs
        reportName: 'report', // report summary filename; browser info by default
  
        // experimental
        preserveDescribeNesting: false, // folded suites stay folded
        foldAll: false, // reports start folded (only with preserveDescribeNesting)
      },
  
  
      // web server port
      port: 9876,
  
  
      // enable / disable colors in the output (reporters and logs)
      colors: true,
  
  
      // level of logging
      // possible values:
      // config.LOG_DISABLE || config.LOG_ERROR ||
      // config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
      logLevel: config.LOG_ERROR,
  
  
      // enable / disable watching file and executing tests whenever any file changes
      autoWatch: true,
  
  
      // start these browsers
      // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
      browsers: ['Chrome'],
  
  
      // Continuous Integration mode
      // if true, Karma captures browsers, runs the tests and exits
      singleRun: true,
  
      // Concurrency level
      // how many browser should be started simultaneous
      concurrency: Infinity
    });
  };
  