forked from souhe/reactScrollbar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.config.js
32 lines (31 loc) · 835 Bytes
/
karma.config.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
const webpackDevConfig = require('./webpack.dev.config.js');
module.exports = function (config) {
config.set({
browsers: [ 'PhantomJS', 'Chrome' ],
files: [
'./test/tests.bundle.js'
],
frameworks: [ 'mocha' ],
preprocessors: {
'./test/tests.bundle.js': [ 'webpack', 'sourcemap' ]
},
reporters: [ 'mocha' ],
singleRun: true,
webpack: {
devtool: 'inline-source-map',
resolve: {
modulesDirectories: ['node_modules', 'bower_components'],
extensions: ['', '.js', '.jsx']
},
module: {
loaders: [
{ test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel' },
{ test: /\.less$/, loader: 'style!css!less' }
]
}
},
webpackServer: {
noInfo: true
}
});
};