'use strict';

var webpackConfig = require('./webpack/webpack.test.js');
require('phantomjs-polyfill')
webpackConfig.entry = {};

module.exports = function (config) {
    config.set({
        basePath: '',
        frameworks: ['jasmine'],
        port: 9876,
        colors: true,
        logLevel: config.LOG_INFO,
        autoWatch: false,
        browsers: ['PhantomJS'],
        singleRun: true,
        autoWatchBatchDelay: 300,
        files: [
            './node_modules/phantomjs-polyfill/bind-polyfill.js',
            './src/test.ts'
        ],
        babelPreprocessor: {
            options: {
                presets: ['es2015']
            }
        },
        preprocessors: {
            'src/test.ts': ['webpack'],
            'src/**/!(*.spec)+(.js)': ['coverage']
        },
        webpackMiddleware: {
            stats: {
                chunkModules: false,
                colors: true
            }
        },
        webpack: webpackConfig,
        reporters: [
            'dots',
            'spec',
            'coverage'
        ],
        coverageReporter: {
            reporters: [
                {
                    dir: 'reports/coverage/',
                    subdir: '.',
                    type: 'html'
                },{
                    dir: 'reports/coverage/',
                    subdir: '.',
                    type: 'cobertura'
                }, {
                    dir: 'reports/coverage/',
                    subdir: '.',
                    type: 'json'
                }
            ]
        }
    });
};
@@ -70,62 +70,96 @@
 ');%0A
-require('phantomjs-polyfill')%0AwebpackConfig.entry = %7B%7D
+webpackConfig.entry = %7B%7D;%0Aprocess.env.CHROME_BIN = require('puppeteer').executablePath()
 ;%0A%0Am
@@ -393,17 +393,22 @@
 : %5B'
-PhantomJS
+ChromeHeadless
 '%5D,%0A
@@ -487,74 +487,8 @@
 : %5B%0A
-            './node_modules/phantomjs-polyfill/bind-polyfill.js',%0A
     
@@ -754,32 +754,106 @@
 ge'%5D%0A        %7D,%0A
+        mime: %7B%0A            'text/x-typescript': %5B'ts', 'tsx'%5D%0A        %7D,%0A
         webpackM
@@ -1609,8 +1609,9 @@
   %7D);%0A%7D;
+%0A

Delete useless configs. Replace PhantomJS -> ChromeHeadless. Added mime: {'text/x-typescript': ['ts', 'tsx']}