forked from r-park/todo-react-redux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
41 lines (31 loc) · 788 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
39
40
41
module.exports = config => {
config.set({
frameworks: ['jasmine'],
files: [
'node_modules/babel-polyfill/dist/polyfill.js',
'node_modules/sinon/pkg/sinon.js',
'node_modules/mockfirebase/browser/mockfirebase.js',
'karma.entry.js'
],
preprocessors: {
'karma.entry.js': ['webpack', 'sourcemap']
},
// webpack config
webpack: require('./webpack.config'),
// webpack server config
webpackServer: {
noInfo: true
},
reporters: ['dots'],
logLevel: config.LOG_INFO,
autoWatch: true,
singleRun: false,
customLaunchers: {
TRAVIS_CHROME: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
browsers: process.env.TRAVIS ? ['TRAVIS_CHROME'] : ['Chrome']
});
};