apps/Pre-site/karma.conf.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 47
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 33
mnd 0
bc 0
fnc 1
dl 0
loc 47
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
module.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"),
11
            require("karma-jasmine-html-reporter"),
12
            require("karma-coverage"),
13
            require("@angular-devkit/build-angular/plugins/karma")
14
        ],
15
    client: {
16
        jasmine: {
17
          // you can add configuration options for Jasmine here
18
          // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19
          // for example, you can disable the random execution with `random: false`
20
          // or set a specific seed with `seed: 4321`
21
        },
22
        clearContext: false // leave Jasmine Spec Runner output visible in browser
23
    },
24
    jasmineHtmlReporter: {
25
        suppressAll: true // removes the duplicated traces
26
    },
27
    coverageReporter: {
28
        dir: require("path").join(__dirname, "./coverage/Pre-site"),
29
        subdir: ".",
30
        reporters: [
31
            { type: "html" },
32
            { type: "text-summary" }
33
        ]
34
    },
35
    browsers: ['Chrome'],
36
    customLaunchers: {
37
        ChromeHeadlessCI: {
38
            base: 'ChromeHeadless',
39
            flags: ['--no-sandbox']
40
        }
41
    },
42
    reporters: ["progress", "kjhtml"],
43
    port: 9876,
44
    colors: true,
45
    logLevel: config.LOG_INFO,
46
    autoWatch: true,
47
    singleRun: false,
48
    restartOnFileChange: true
49
    });
50
};
51