1 // Karma configuration file, see link for more information
\r
2 // https://karma-runner.github.io/1.0/config/configuration-file.html
\r
4 module.exports = function (config) {
\r
7 frameworks: ['jasmine', '@angular-devkit/build-angular'],
\r
9 require('karma-jasmine'),
\r
10 require('karma-chrome-launcher'),
\r
11 require('karma-jasmine-html-reporter'),
\r
12 require('karma-coverage-istanbul-reporter'),
\r
13 require('@angular-devkit/build-angular/plugins/karma')
\r
16 clearContext: false // leave Jasmine Spec Runner output visible in browser
\r
18 coverageIstanbulReporter: {
\r
19 dir: require('path').join(__dirname, 'coverage'), reports: [ 'html', 'lcovonly' ],
\r
20 fixWebpackSourcePaths: true
\r
25 reporters: ['progress', 'kjhtml'],
\r
28 logLevel: config.LOG_INFO,
\r
30 browsers: ['Chrome'],
\r
34 if (process.env.TEST_CI) {
\r
35 Object.assign(defaults, {
\r
37 browsers: ['ChromeHeadlessNoSandbox'],
\r
40 ChromeHeadlessNoSandbox: {
\r
41 base: 'ChromeHeadless',
\r
42 flags: ['--no-sandbox']
\r
45 browserNoActivityTimeout: 60000,
\r
49 config.set(defaults)
\r