From f5012d87cf0fb635ba62d4d926c098f7fcaba6a4 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 9 Oct 2018 17:40:25 +0200 Subject: [PATCH] Fix karma webpack config --- karma.conf.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index 7e9dfb1560..73d0f87303 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -23,8 +23,6 @@ var fs = require('fs'); // var testFile = process.env.KARMA_TEST_FILE || 'test/all-tests.js'; -// make sure we're flagged as development to avoid wasting time optimising -webpack_config.mode = 'development'; process.env.PHANTOMJS_BIN = 'node_modules/.bin/phantomjs'; @@ -205,7 +203,10 @@ module.exports = function (config) { root: [ path.resolve('./test'), ], - modules: "node_modules", + modules: [ + path.resolve('./test'), + "node_modules" + ], }, devtool: 'inline-source-map', externals: { @@ -213,6 +214,8 @@ module.exports = function (config) { // (the 'commonjs' here means it will output a 'require') "electron": "commonjs electron", }, + // make sure we're flagged as development to avoid wasting time optimising + mode: 'development', }, webpackMiddleware: {