From ae089cf5f16e5df40e4d14a9fe844ffc83bd6774 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Tue, 15 Aug 2017 19:56:30 +0900 Subject: add karma.conf.js --- karma.conf.js | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 karma.conf.js (limited to 'karma.conf.js') 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'] + }) +} -- cgit v1.2.3