Skip to content

Commit c3aa344

Browse files
committed
cleanup karma config
1 parent bd913bc commit c3aa344

File tree

1 file changed

+3
-32
lines changed

1 file changed

+3
-32
lines changed

karma.conf.js

+3-32
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,16 @@ module.exports = function (config) {
99

1010
// plugins
1111
plugins: [
12-
//'karma-coverage',
1312
'karma-coverage-istanbul-reporter',
1413
'karma-spec-reporter',
1514
'karma-webpack',
1615
'karma-jasmine',
1716
'karma-jasmine-matchers',
1817
'karma-chrome-launcher',
19-
20-
2118
],
2219
// preprocess matching files BEFORE serving to browser
2320
preprocessors: {
24-
//'*.js': ['coverage']
2521
'src/javascript/*.js': ['webpack'],
26-
//'src/javascript/!(*spec).js': ['coverage'],
2722

2823
},
2924
autoWatch: true,
@@ -68,8 +63,7 @@ module.exports = function (config) {
6863
//list of files to exclude
6964
exclude: [],
7065
// test results reporters to use
71-
// reporters: ['spec', 'coverage'], //'spec' to see specs list
72-
reporters: ['spec', 'coverage-istanbul'],
66+
reporters: ['spec', 'coverage-istanbul'], //'spec' to see specs list
7367
specReporter: {
7468
suppressErrorSummary: false,
7569
failFast: false
@@ -81,7 +75,7 @@ module.exports = function (config) {
8175
singleRun: false,
8276
coverageIstanbulReporter: {
8377
reporters: [
84-
// reporters not supporting the `file` property
78+
// reporters
8579
['html', 'lcovonly'],
8680
],
8781
dir: path.join(__dirname, 'coverage'),
@@ -93,29 +87,6 @@ module.exports = function (config) {
9387
}
9488
},
9589
},
96-
// changed default output dir from 'coverage/'
97-
// reports: [
98-
// // reporters not supporting the `file` property
99-
// ['html','lcovonly'],
100-
// ],
101-
// combineBrowserReports: true,
102-
//
103-
//
104-
// },
105-
// coverageReporter : {
106-
// type : 'text',
107-
// dir : 'coverage/',
108-
// file : 'coverage.txt'
109-
// },
110-
// coverageReporter: {
111-
// dir: 'coverage/',
112-
// instrumenterOptions: {
113-
// istanbul: { noCompact: true }
114-
// },
115-
// reporters: [ {
116-
// type: 'lcovonly',
117-
// //subdir: 'report-lcov'
118-
// },]
119-
// }
90+
12091
})
12192
};

0 commit comments

Comments
 (0)