-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkarma.conf.js
More file actions
54 lines (42 loc) · 1.24 KB
/
karma.conf.js
File metadata and controls
54 lines (42 loc) · 1.24 KB
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
46
47
48
49
50
51
52
53
54
'use strict';
var webpack = require('webpack');
var master_config = require('./master_config');
module.exports = function(config) {
config.set({
browsers: [ 'PhantomJS' ],
singleRun: true,
frameworks: [ 'mocha' ],
files: [
'tests.polyfill.js',
'tests.webpack.js'
],
preprocessors: {
'tests.webpack.js': [ 'webpack', 'sourcemap' ],
'src/*.js': ['coverage']
},
reporters: [ 'dots', 'coverage' ],
coverageReporter: {
dir: 'coverage/',
reporters: [
{ type: 'lcovonly', subdir: '.', file: 'lcov.info' },
{ type: 'html', subdir: 'html' }
]
},
webpack: {
devtool: 'inline-source-map',
module: {
loaders: [
{ test: /\.jsx?$/, loader: 'babel-loader' }
].concat(master_config.non_js_loaders),
postLoaders: [{
test: /\.js?$/,
exclude: /(test|node_modules)/,
loader: 'istanbul-instrumenter'
}]
}
},
webpackServer: {
noInfo: true
}
});
};