Skip to content

Commit 847430a

Browse files
Update Karma config to allow for Webpack 2-style config file. Fixes aspnet#625.
1 parent 55c3156 commit 847430a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/Angular2Spa/ClientApp/test/karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = function (config) {
2020
browsers: ['Chrome'],
2121
mime: { 'application/javascript': ['ts','tsx'] },
2222
singleRun: false,
23-
webpack: require('../../webpack.config.js').filter(config => config.target !== 'node'), // Test against client bundle, because tests run in a browser
23+
webpack: require('../../webpack.config.js')().filter(config => config.target !== 'node'), // Test against client bundle, because tests run in a browser
2424
webpackMiddleware: { stats: 'errors-only' }
2525
});
2626
};

0 commit comments

Comments
 (0)