From 8d9ef4445ab65a8a817e2bd3aeb4bd6b5c2b92d9 Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Fri, 22 Sep 2017 11:30:21 -0400 Subject: [PATCH] Update webpack config to require webpack.test.js --- awx/ui/client/test/unit/karma.conf.js | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/awx/ui/client/test/unit/karma.conf.js b/awx/ui/client/test/unit/karma.conf.js index 17f46201cb..e3343b0a00 100644 --- a/awx/ui/client/test/unit/karma.conf.js +++ b/awx/ui/client/test/unit/karma.conf.js @@ -1,4 +1,5 @@ let path = require('path'); +const webpackConfig = require('../../../build/webpack.test.js'); module.exports = config => { config.set({ @@ -30,22 +31,7 @@ module.exports = config => { return '/static/partials' + filepath; } }, - webpack: { - module: { - loaders: [ - { - test: /\.js$/, - loader: 'babel', - exclude: /node_modules/ - }, - { - test: /\.json$/, - loader: 'json', - exclude: /node_modules/ - }, - ] - } - }, + webpack: webpackConfig, webpackMiddleware: { noInfo: 'errors-only' }