Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 39 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | // Karma configuration file, see link for more information |
||
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 |