karma.conf.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 39
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 30
mnd 0
bc 0
fnc 1
dl 0
loc 39
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
1
// Karma configuration file, see link for more information
2
// https://karma-runner.github.io/1.0/config/configuration-file.html
3
4
process.env.CHROME_BIN = require('puppeteer').executablePath();
5
6
module.exports = function (config) {
7
    config.set({
8
        basePath: '',
9
        frameworks: ['jasmine', '@angular-devkit/build-angular'],
10
        plugins: [
11
            require('karma-jasmine'),
12
            require('karma-chrome-launcher'),
13
            require('karma-jasmine-html-reporter'),
14
            require('karma-coverage-istanbul-reporter'),
15
            require('@angular-devkit/build-angular/plugins/karma')
16
        ],
17
        client: {
18
            clearContext: false // leave Jasmine Spec Runner output visible in browser
19
        },
20
        coverageIstanbulReporter: {
21
            dir: require('path').join(__dirname, '../coverage'),
22
            reports: ['html', 'lcovonly', 'text-summary'],
23
            fixWebpackSourcePaths: true
24
        },
25
        reporters: ['progress', 'kjhtml'],
26
        port: 9876,
27
        colors: true,
28
        logLevel: config.LOG_INFO,
29
        autoWatch: true,
30
        browsers: ['HeadlessChrome'],
31
        customLaunchers: {
32
            HeadlessChrome: {
33
                base: 'ChromeHeadless',
34
                flags: ['--no-sandbox']
35
            }
36
        },
37
        singleRun: false,
38
        files: [
39
            'node_modules/zone.js/dist/zone.js'
40
        ]
41
    });
42
};
43