diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-08-15 20:57:45 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-08-15 20:57:45 +0900 |
commit | f891ccf9990c7cd28b43ca9824a866771ec91c81 (patch) | |
tree | 1350fe8bcfdb47fe6c4840ec63bb40c0e3548dfa /karma.conf.js | |
parent | e45985088e0bbd041a567bab6b7665d2906528e4 (diff) | |
parent | bae3b9637fd85fd8c81143f4fc273074ec26af7e (diff) |
Merge branch 'test'
Diffstat (limited to 'karma.conf.js')
-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'] + }) +} |