Files
angular__angular/devtools/projects/ng-devtools/karma.conf.js
T

39 lines
1.1 KiB
JavaScript
Raw Normal View History

2020-01-27 13:40:18 -05:00
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
2020-01-27 13:40:18 -05:00
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma'),
2020-01-27 13:40:18 -05:00
],
client: {
clearContext: true, // leave Jasmine Spec Runner output visible in browser
2020-01-27 13:40:18 -05:00
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../../coverage/ng-devtools'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true,
2020-01-27 13:40:18 -05:00
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['ChromeHeadlessNoSandbox'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox'],
},
},
2020-01-27 13:40:18 -05:00
singleRun: false,
restartOnFileChange: true,
2020-01-27 13:40:18 -05:00
});
};