-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathkarma.conf.js
More file actions
60 lines (50 loc) · 1.14 KB
/
karma.conf.js
File metadata and controls
60 lines (50 loc) · 1.14 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
55
56
57
58
59
60
var webpackConfig = require('./webpack.config.js');
Object.assign(webpackConfig, {
externals: {
'react/addons': true,
'react/lib/ExecutionEnvironment': true,
'react/lib/ReactContext': 'window'
}
});
module.exports = (config) => {
config.set({
frameworks: ['mocha', 'chai-sinon'],
files: [
'node_modules/babel-polyfill/dist/polyfill.js',
'test/**/*.+(es6|jsx)'
],
exclude: [
'src/test/middleware/**/*',
'src/middleware/**/*',
'src/test/**/*.server.spec.*'
],
preprocessors: {
'test/**/*.+(js|jsx|es6)': ['webpack', 'sourcemap']
},
browsers: ['Chrome'],
autoWatch: true,
plugins: [
'karma-*'
],
webpack: require('./webpack.config.js'),
webpackMiddleware: {
noInfo: false,
stats: {
chunks: false,
colors: true,
hash: false,
version: false,
timings: false,
assets: false,
modules: false,
reasons: false,
children: false,
source: false,
errors: true,
errorDetails: true,
warnings: false,
publicPath: false
}
}
});
};