Update Karma config to allow for Webpack 2-style config file. Fixes #625.

This commit is contained in:
SteveSandersonMS
2017-01-31 11:49:21 +00:00
parent 55c3156df2
commit 847430a0d9

View File

@@ -20,7 +20,7 @@ module.exports = function (config) {
browsers: ['Chrome'],
mime: { 'application/javascript': ['ts','tsx'] },
singleRun: false,
webpack: require('../../webpack.config.js').filter(config => config.target !== 'node'), // Test against client bundle, because tests run in a browser
webpack: require('../../webpack.config.js')().filter(config => config.target !== 'node'), // Test against client bundle, because tests run in a browser
webpackMiddleware: { stats: 'errors-only' }
});
};