forked from terrestris/BasiGX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
32 lines (26 loc) · 946 Bytes
/
karma.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* eslint-env node */
/* eslint max-len: 0 */
var commonConfig = require('./karma-conf.common.js');
module.exports = function(config) {
commonConfig(config); // apply shared configuration
config.set({
// Preprocess so we can gather coverage
preprocessors: {
'src/**/*.js': ['coverage']
},
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['mocha', 'coverage'],
// enable / disable watching file and executing tests whenever any file changes
autoWatch: false,
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: true,
// optionally, configure the reporter
coverageReporter: {
dir: 'coverage/',
type: 'json'
}
});
};