forked from maximoleinyk/reactjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
38 lines (34 loc) · 840 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
/*global require module process */
const isProduction = process.env.NODE_ENV === 'production';
module.exports = function(config) {
config.set({
files: [
'test/index.js'
],
singleRun: isProduction,
autoWatch: !isProduction,
colors: true,
port: 9876,
logLevel: config.LOG_ERROR,
browsers: ['PhantomJS'],
frameworks: ['mocha', 'chai', 'sinon'],
plugins: [
require('karma-webpack'),
require("karma-mocha"),
require('karma-chai'),
require('karma-sinon'),
require('karma-sourcemap-loader'),
require("karma-phantomjs-launcher"),
require("karma-spec-reporter"),
require("karma-coverage")
],
preprocessors: {
'test/index.js': ['webpack', 'sourcemap']
},
reporters: ['spec', 'coverage'],
webpack: require('./build/karma.webpack'),
webpackMiddleware: {
noInfo: true
}
});
};