mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Increased browser no activity timeout.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user