blob: f3b73b4a105c35eccb89a2b787b102444c593c88 [file] [log] [blame]
Sean Condon83fc39f2018-04-19 18:56:13 +01001// 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 Condon2bd11b72018-06-15 08:00:48 +010011 require('karma-firefox-launcher'),
Sean Condon83fc39f2018-04-19 18:56:13 +010012 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'), reports: [ 'html', 'lcovonly' ],
21 fixWebpackSourcePaths: true
22 },
23 angularCli: {
24 environment: 'dev'
25 },
26 reporters: ['progress', 'kjhtml'],
27 port: 9876,
28 colors: true,
29 logLevel: config.LOG_INFO,
30 autoWatch: true,
Sean Condon2bd11b72018-06-15 08:00:48 +010031 browsers: ['Chrome', 'Firefox'],
Sean Condon83fc39f2018-04-19 18:56:13 +010032 singleRun: false
33 });
34};