forked from jupyterlab/jupyterlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma-cov.conf.js
36 lines (35 loc) · 872 Bytes
/
karma-cov.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
33
34
35
36
var path = require('path');
module.exports = function (config) {
config.set({
basePath: '.',
browsers: ['Firefox'],
frameworks: ['mocha'],
client: {
mocha: {
timeout : 10000, // 10 seconds - upped from 2 seconds
retries: 3 // Allow for slow server on CI.
}
},
reporters: ['mocha', 'coverage', 'remap-coverage'],
files: [
'node_modules/es6-promise/dist/es6-promise.js',
'build/injector.js',
'build/coverage.js'
],
preprocessors: {
'build/coverage.js': ['sourcemap']
},
coverageReporter: {
type: 'in-memory'
},
remapCoverageReporter: {
'text-summary': null, // to show summary in console
json: 'coverage/remapped.json',
html: 'coverage/html'
},
port: 9876,
colors: true,
singleRun: true,
logLevel: config.LOG_INFO
});
};