| 1 |
|
= |
1 |
|
| 2 |
|
|
2 |
|
| 3 |
|
|
3 |
|
| 4 |
module.exports = function (config) { |
|
4 |
module.exports = function (config) { |
| 5 |
config.set({ |
|
5 |
config.set({ |
| 6 |
basePath: '', |
|
6 |
basePath: '', |
| 7 |
frameworks: ['jasmine', '@angular-devkit/build-angular'], |
|
7 |
frameworks: ['jasmine', '@angular-devkit/build-angular'], |
| 8 |
plugins: [ |
|
8 |
plugins: [ |
| 9 |
require('karma-jasmine'), |
|
9 |
require('karma-jasmine'), |
| 10 |
require('karma-chrome-launcher'), |
|
10 |
require('karma-chrome-launcher'), |
| 11 |
require('karma-jasmine-html-reporter'), |
|
11 |
require('karma-jasmine-html-reporter'), |
| 12 |
require('karma-coverage-istanbul-reporter'), |
<> |
12 |
require('karma-coverage'), |
| 13 |
require('@angular-devkit/build-angular/plugins/karma') |
= |
13 |
require('@angular-devkit/build-angular/plugins/karma') |
| 14 |
], |
|
14 |
], |
| 15 |
client: { |
|
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 |
}, |
| 16 |
clearContext: false |
= |
22 |
clearContext: false |
| 17 |
}, |
|
23 |
}, |
| |
|
<> |
24 |
jasmineHtmlReporter: { |
| |
|
|
25 |
suppressAll: true // removes the duplicated traces |
| |
|
|
26 |
}, |
| 18 |
coverageIstanbulReporter: { |
|
27 |
coverageReporter: { |
| 19 |
dir: require('path').join(__dirname, './coverage/angular-starter'), |
|
28 |
dir: require('path').join(__dirname, './coverage/ng11-tmpl'), |
| |
|
|
29 |
subdir: '.', |
| |
|
|
30 |
reporters: [ |
| |
|
|
31 |
{ type: 'html' }, |
| 20 |
reports: ['html', 'lcovonly', 'text-summary'], |
|
32 |
{ type: 'text-summary' } |
| 21 |
fixWebpackSourcePaths: true |
|
33 |
] |
| 22 |
}, |
= |
34 |
}, |
| 23 |
reporters: ['progress', 'kjhtml'], |
|
35 |
reporters: ['progress', 'kjhtml'], |
| 24 |
port: 9876, |
|
36 |
port: 9876, |
| 25 |
colors: true, |
|
37 |
colors: true, |
| 26 |
logLevel: config.LOG_INFO, |
|
38 |
logLevel: config.LOG_INFO, |
| 27 |
autoWatch: true, |
|
39 |
autoWatch: true, |
| 28 |
browsers: ['Chrome'], |
|
40 |
browsers: ['Chrome'], |
| 29 |
singleRun: false, |
|
41 |
singleRun: false, |
| 30 |
restartOnFileChange: true |
|
42 |
restartOnFileChange: true |
| 31 |
}); |
|
43 |
}); |
| 32 |
}; |
|
44 |
}; |