-
Notifications
You must be signed in to change notification settings - Fork 104
/
karma.conf.js
49 lines (48 loc) · 1.49 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
/* global process */
module.exports = function (config) {
config.set({
browsers: process.env.CONTINUOUS_INTEGRATION ?
[ 'Firefox' ] :
[
'PhantomJS',
'Chrome',
'ChromeCanary',
'Firefox',
'Opera',
'Safari'
],
singleRun: true,
browserNoActivityTimeout: 30000,
frameworks: [ 'mocha' ],
files: [
// This one is needed for testing in PhantomJS
'https://raw.githubusercontent.com/es-shims/es5-shim/master/es5-shim.js',
'./__tests__/tests.webpack.js'
],
preprocessors: {
'./__tests__/tests.webpack.js': [ 'webpack', 'sourcemap' ]
},
reporters: [ 'progress' ],
webpack: {
devtool: 'inline-source-map',
module: {
loaders: [
{
test: /\.jsx?$/,
loader: "babel",
query: {
// https://github.com/babel/babel-loader#options
cacheDirectory: true,
presets: ['es2015', 'stage-0', 'react'],
plugins: ["transform-runtime"]
},
exclude: /node_modules/
}
]
}
},
webpackServer: {
noInfo: true
}
});
};