mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Update Karma config to allow for Webpack 2-style config file. Fixes #625.
This commit is contained in:
@@ -20,7 +20,7 @@ module.exports = function (config) {
|
|||||||
browsers: ['Chrome'],
|
browsers: ['Chrome'],
|
||||||
mime: { 'application/javascript': ['ts','tsx'] },
|
mime: { 'application/javascript': ['ts','tsx'] },
|
||||||
singleRun: false,
|
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' }
|
webpackMiddleware: { stats: 'errors-only' }
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user