add karma.conf.js

jh-changes
Shin'ya Ueoka 7 years ago
parent bf3eef8699
commit ae089cf5f1
  1. 34
      karma.conf.js

@ -0,0 +1,34 @@
module.exports = function (config) {
var webpackConfig = require('./webpack.config.js');
config.set({
basePath: '',
frameworks: ['mocha'],
files: ['test/**/*\.test\.js'],
preprocessors: {
'test/**/*\.test\.js': [ 'webpack' ]
},
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
browsers: ['Firefox'],
singleRun: true,
webpack: {
devtool: 'inline-source-map',
resolve: webpackConfig.resolve,
module: webpackConfig.module
},
webpackMiddleware: {
noInfo: true
},
reporters: ['mocha']
})
}