-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf
42 lines (38 loc) · 885 Bytes
/
karma.conf
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.dev');
webpackConfig.devtool = 'inline-source-map';
module.exports = function (config) {
config.set({
browsers: [ 'Chrome' ],
files: [
'tests/**/*.spec.js',
],
frameworks: ['jasmine'],
plugins: [
'karma-chrome-launcher',
'karma-jasmine',
'karma-jasmine-html-reporter',
'karma-sourcemap-loader',
'karma-webpack',
'karma-eslint'
],
preprocessors: {
'tests/**/*.js': ['webpack','eslint', 'sourcemap']
},
reporters: ['kjhtml'],
singleRun: false,
webpack: webpackConfig,
webpackMiddleware: {
noInfo: true,
},
eslint: {
errorThreshold: 1000,
stopAboveErrorThreshold: true,
stopOnError: true,
stopOnWarning: false,
showWarnings: false,
engine: {
configFile: '.eslintrc'
}
}
});
};