2
Fork 0
definma-ui/karma.conf.js

36 lines
1.0 KiB
JavaScript
Raw Permalink Normal View History

2020-01-14 13:41:28 +01:00
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
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-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
2020-08-14 14:29:17 +02:00
clearContext: false, // leave Jasmine Spec Runner output visible in browser
jasmine: {
random: false
}
2020-01-14 13:41:28 +01:00
},
coverageIstanbulReporter: {
2020-08-12 17:38:12 +02:00
dir: require('path').join(__dirname, './coverage/definma'),
2020-01-14 13:41:28 +01:00
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};