Initial test framework setup

This commit is contained in:
Nicolas Gallagher
2015-09-01 14:44:42 -07:00
parent d3dce675df
commit 92dbadacb5
5 changed files with 96 additions and 27 deletions
+46
View File
@@ -0,0 +1,46 @@
'use strict';
var webpackConfig = require('./webpack-base.config.js');
// entry is determined by karma config 'files' array
webpackConfig.entry = {};
module.exports = function (config) {
config.set({
browsers: [ 'Chrome' ],
browserNoActivityTimeout: 60000,
client: {
captureConsole: true,
mocha: {
ui: 'tdd'
},
useIframe: true
},
files: [
'src/specs.bundle.js'
],
frameworks: [
'mocha'
],
plugins: [
'karma-chrome-launcher',
'karma-mocha',
'karma-sourcemap-loader',
'karma-webpack'
],
preprocessors: {
'src/specs.bundle.js': [ 'webpack', 'sourcemap' ]
},
reporters: [ 'dots' ],
singleRun: true,
webpack: webpackConfig,
webpackMiddleware: {
stats: {
assetsSort: 'name',
colors: true,
children: false,
chunks: false,
modules: false
}
}
});
};