blob: 8afd8a376ab28681357d8d6c7b45d8d7a1b42fdc [file] [log] [blame]
Sean Condonff85fbe2019-03-16 14:28:46 +00001// Karma configuration file, see link for more information
2// https://karma-runner.github.io/1.0/config/configuration-file.html
3
4module.exports = function (config) {
5 config.set({
6 basePath: '',
7 frameworks: ['jasmine', '@angular-devkit/build-angular'],
8 plugins: [
9 require('karma-jasmine'),
10 require('karma-chrome-launcher'),
Sean Condon64060ff2019-05-30 15:48:11 +010011 require('karma-firefox-launcher'),
Sean Condonff85fbe2019-03-16 14:28:46 +000012 require('karma-jasmine-html-reporter'),
13 require('karma-coverage-istanbul-reporter'),
14 require('@angular-devkit/build-angular/plugins/karma')
15 ],
16 client: {
17 clearContext: false // leave Jasmine Spec Runner output visible in browser
18 },
19 coverageIstanbulReporter: {
20 dir: require('path').join(__dirname, '../../coverage'),
21 reports: ['html', 'lcovonly'],
22 fixWebpackSourcePaths: true
23 },
24 reporters: ['progress', 'kjhtml'],
25 port: 9876,
26 colors: true,
27 logLevel: config.LOG_INFO,
28 autoWatch: true,
Sean Condon64060ff2019-05-30 15:48:11 +010029 browsers: ['Chrome', 'Firefox'],
Sean Condonff85fbe2019-03-16 14:28:46 +000030 singleRun: false
31 });
32};