forked from peternewnham/react-html-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
42 lines (39 loc) · 811 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
34
35
36
37
38
39
40
41
42
var webpackConfig = require('./webpack.config.test');
module.exports = function(karma) {
karma.set({
files: [
{
pattern: 'tests.webpack.js',
watched: true
}
],
autoWatch: true,
logLevel: karma.LOG_INFO,
basePath: '',
singleRun: false,
frameworks: [
'jasmine',
'phantomjs-shim'
],
preprocessors: {
'tests.webpack.js': 'webpack'
},
browsers: ['PhantomJS'],
colors: true,
browserNoActivityTimeout: 100000,
webpackMiddleware: {
noInfo: true
},
webpack: webpackConfig,
reporters: [ 'spec', 'coverage' ],
coverageReporter: {
type: 'lcov',
dir: 'coverage/',
subdir: '.',
includeAllSources: true
},
specReporter: {
suppressSkipped: true
}
});
};