From a6e8e843a29f88e28bb1517a43ed24d5fc0dd4ba Mon Sep 17 00:00:00 2001 From: William Welling Date: Fri, 24 Mar 2017 07:37:24 -0500 Subject: [PATCH] Increased browser no activity timeout. --- karma.conf.js | 46 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 32 insertions(+), 14 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index 07be7852f0..fcfc62133c 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -37,29 +37,43 @@ module.exports = function(config) { ], // list of files to exclude - exclude: [ ], + exclude: [], /* * list of files / patterns to load in the browser * * we are building the test environment in ./spec-bundle.js */ - files: [ { pattern: './spec-bundle.js', watched: false } ], + files: [ + { + pattern: './spec-bundle.js', + watched: false + } + ], /* * preprocess matching files before serving them to the browser * available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor */ - preprocessors: { './spec-bundle.js': ['coverage', 'webpack', 'sourcemap'] }, + preprocessors: { + './spec-bundle.js': ['coverage', 'webpack', 'sourcemap'] + }, // Webpack Config at ./webpack.test.js webpack: testWebpackConfig, coverageReporter: { - reporters:[ - {type: 'in-memory'}, - {type: 'json', subdir: '.', file: 'coverage-final.json'}, - {type: 'html', dir : 'coverage/'} + reporters: [ + { + type: 'in-memory' + }, { + type: 'json', + subdir: '.', + file: 'coverage-final.json' + }, { + type: 'html', + dir: 'coverage/' + } ] }, @@ -76,7 +90,9 @@ module.exports = function(config) { }, // Webpack please don't spam the console when running in karma! - webpackMiddleware: { stats: 'errors-only'}, + webpackMiddleware: { + stats: 'errors-only' + }, /* * test results reporter to use @@ -84,7 +100,9 @@ module.exports = function(config) { * possible values: 'dots', 'progress' * available reporters: https://npmjs.org/browse/keyword/karma-reporter */ - reporters: [ 'mocha', 'coverage', 'karma-remap-istanbul' ], + reporters: [ + 'mocha', 'coverage', 'karma-remap-istanbul' + ], // Karma web server port port: 9876, @@ -134,7 +152,9 @@ module.exports = function(config) { mochaReporter: { ignoreSkipped: true - } + }, + + browserNoActivityTimeout: 30000 /* * Continuous Integration mode @@ -143,10 +163,8 @@ module.exports = function(config) { //singleRun: true }; - if (process.env.TRAVIS){ - configuration.browsers = [ - 'ChromeTravisCi' - ]; + if (process.env.TRAVIS) { + configuration.browsers = ['ChromeTravisCi']; } config.set(configuration);