-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkarma.conf.js
More file actions
44 lines (42 loc) · 1.07 KB
/
karma.conf.js
File metadata and controls
44 lines (42 loc) · 1.07 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
var webpack = require('webpack');
var _browsers;
if (process.env.CONTINUOUS_INTEGRATION) {
// For Travis CI
_browsers = ['Firefox'];
}
else {
_browsers = ['Chrome', 'Firefox'];
}
module.exports = function(config) {
config.set({
browsers: _browsers,
frameworks: ['jasmine'],
files: ['tests.webpack.js'],
preprocessors: {
'tests.webpack.js': ['webpack', 'sourcemap']
},
reporters: ['progress', 'dots', 'coverage'],
colors: true,
logLevel: config.LOG_INFO,
singleRun: true,
autoWatch: false,
// singleRun: false,
// autoWatch: true,
webpack: {
devtool: 'inline-source-map',
module: {
loaders: [
{ test: /\.jsx$/, loader: 'babel-loader' },
{ test: /\.js$/, loader: 'babel-loader' }
]
}
},
webpackServer: {
noInfo: true
},
coverageReporter: {
type: 'lcov',
dir: 'coverage/'
}
});
};