Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
fixWebpackSourcePaths: true
},
reporters: [
'mocha',
'coverage'
],
coverageReporter: {
type: 'text-summary'
},
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browserNoActivityTimeout: 30000,
browsers: [
ciInfo.TRAVIS ? 'ChromeTravisCi' :
chromeHeadlessSupported ? 'ChromeHeadless' :
'Chrome'
],
customLaunchers: {
ChromeTravisCi: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
singleRun: false
});
};
gulp.task('run.karma', (done: DoneCallback) => {
const karmaOptions: ExtendedKarmaConfig = {
frameworks: ['jasmine'],
browsers: ciInfo.TRAVIS ? ['ChromeTravisCi'] : ['Chrome'],
customLaunchers: {
ChromeTravisCi: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
singleRun: true,
autoWatch: false,
logLevel: karmaConstants.LOG_INFO,
reporters: [ 'mocha', 'coverage' ],
coverageReporter: {
type: 'text-summary'
},
colors: true,
port: 9876,
basePath: './',