const webpackConfig = require('./webpack.test.config');

module.exports = (config) => {
  config.set({
    browsers: ['ChromeHeadless'],
    frameworks: ['phantomjs-shim', 'jasmine'],
    reporters: ['spec', 'coverage', 'remap-coverage'],
    files: ['./index.js'],
    preprocessors: {
      'index.js': ['coverage', 'webpack', 'sourcemap'],
    },
    webpack: webpackConfig,
    webpackMiddleware: {
      noInfo: true,
    },
    coverageReporter: {
      type: 'in-memory',
    },
    remapCoverageReporter: {
      'text-summary': null,
      json: './test/coverage/coverage.json',
      html: './test/coverage/html',
    },
  });
};

@@ -71,16 +71,14 @@
 s = 
-(
 config
-)
  =%3E 
@@ -124,18 +124,200 @@
 Headless
-'%5D
+NoSandbox'%5D,%0A%0A    // you can define custom flags%0A    customLaunchers: %7B%0A      ChromeHeadlessNoSandbox: %7B%0A        base: 'ChromeHeadless',%0A        flags: %5B'--no-sandbox'%5D,%0A      %7D,%0A    %7D
 ,%0A    fr

Fix ChromeHeadless for travis