1 // Karma configuration file, see link for more information
2 // https://karma-runner.github.io/1.0/config/configuration-file.html
4 module.exports = function (config) {
7 frameworks: ['jasmine', '@angular-devkit/build-angular'],
9 require('karma-jasmine'),
10 require('karma-chrome-launcher'),
11 require('karma-jasmine-html-reporter'),
12 require('karma-coverage-istanbul-reporter'),
13 require('@angular-devkit/build-angular/plugins/karma')
16 clearContext: false // leave Jasmine Spec Runner output visible in browser
18 coverageIstanbulReporter: {
19 dir: require('path').join(__dirname, './coverage/angular-tour-of-heroes'),
20 reports: ['html', 'lcovonly', 'text-summary'],
21 fixWebpackSourcePaths: true
23 reporters: ['progress', 'kjhtml'],
26 logLevel: config.LOG_INFO,
30 restartOnFileChange: true