forked from furstenheim/automatic-scatter-labelling
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarma.conf.js
33 lines (33 loc) · 830 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
33
module.exports = function (config) {
config.set({
// ... normal karma configuration
files: [
{pattern: 'test/*-test.js', watched: false}
],
frameworks: ['browserify', 'mocha', 'chai'],
browserNoActivityTimeout: 100000,
preprocessors: {
'test/*-test.js': ['browserify']
},
reporters: ['progress', 'coverage'],
customLaunchers: {
ChromeOutOfFocus: {
base: 'Chrome',
flags: ['--window-size=300,300', ' --remote-debugging-port=9222']
}
},
browserify: {
debug: true,
transform: [['babelify', {plugins: ['meaningful-logs', 'istanbul']}]]
},
browsers: ['ChromeOutOfFocus'],
browserConsoleLogOptions: {
terminal: true,
level: ''
},
coverageReporter: {
type: 'html',
dir: 'coverage/'
}
})
}