diff options
-rw-r--r-- | karma.conf.js | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/karma.conf.js b/karma.conf.js new file mode 100644 index 0000000..539fb3a --- /dev/null +++ b/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'] + }) +} |