forked from Graylog2/graylog2-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.shared.js
58 lines (47 loc) · 1.06 KB
/
karma.shared.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
var merge = require('webpack-merge');
var webpackSharedConfig = merge(require('./webpack.config'), {
module: {
noParse: [
/node_modules\/sinon\//,
]
},
resolve: {
alias: {
'sinon': 'sinon/pkg/sinon'
}
},
externals: {
'jsdom': 'window',
'cheerio': 'window',
'react/lib/ExecutionEnvironment': true,
'react/lib/ReactContext': true,
}
});
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
'config.js',
'build/vendor.js',
'test/shim/es5-shim.js',
'test/shim/server-side-global-vars.js',
'test/src/*.js',
'test/src/**/*.js',
'test/src/*.jsx',
'test/src/**/*.jsx',
],
preprocessors: {
'test/src/*.js': ['webpack'],
'test/src/**/*.js': ['webpack'],
'test/src/*.jsx': ['webpack'],
'test/src/**/*.jsx': ['webpack'],
},
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
captureTimeout: 60000,
webpack: webpackSharedConfig
});
};