forked from silvestreh/onScreen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
45 lines (45 loc) · 1.24 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
module.exports = (config) => {
config.set({
browserConsoleLogOptions: {
level: 'debug',
format: '%b %T: %m',
terminal: true
},
frameworks: ['mocha', 'chai', 'sinon'],
files: [
'test/*_test.js'
],
preprocessors: {
'lib/index.js': ['rollup', 'coverage'],
'test/*_test.js': ['rollup']
},
rollupPreprocessor: {
plugins: [
require('rollup-plugin-babel')(),
require('rollup-plugin-istanbul')({
exclude: ['test/*_test.js'],
}),
],
format: 'iife',
sourceMap: 'inline'
},
customContextFile: 'test/context.html',
customLaunchers: {
'PhantomJS_Desktop': {
base: 'PhantomJS',
options: {
viewportSize: {
width: 800,
height: 600,
}
}
},
},
browsers: ['PhantomJS_Desktop'],
reporters: ['mocha', 'coverage'],
coverageReporter: {
reporters: [{type: 'lcov'}]
},
singleRun: true,
});
};