add karma.conf.js
This commit is contained in:
parent
bf3eef8699
commit
ae089cf5f1
1 changed files with 34 additions and 0 deletions
34
karma.conf.js
Normal file
34
karma.conf.js
Normal file
|
@ -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']
|
||||||
|
})
|
||||||
|
}
|
Reference in a new issue