This repository has been archived on 2020-04-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Vim-Vixen/karma.conf.js
2017-08-21 20:58:43 +09:00

39 lines
692 B
JavaScript

module.exports = function (config) {
var webpackConfig = require('./webpack.config.js');
config.set({
basePath: '',
frameworks: ['mocha'],
files: [
'test/**/*.test.js',
'test/**/*.html'
],
preprocessors: {
'test/**/*.test.js': [ 'webpack' ],
'test/**/*.html': ['html2js']
},
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']
})
}