diff --git a/src/configure-webpack/loaders/javascript.js b/src/configure-webpack/loaders/javascript.js
index <HASH>..<HASH> 100644
--- a/src/configure-webpack/loaders/javascript.js
+++ b/src/configure-webpack/loaders/javascript.js
@@ -27,7 +27,7 @@ export default {
 
                   // Disables ES6 module transformation
                   // which Webpack2 can understand
-                  modules: false,
+                  modules: action === actions.TEST_UNIT ? 'commonjs' : false,
 
                   targets: {
                     // Unfortunately we are bound to what UglifyJS
Transplile modules to commonjs while running the tests to fix inject-loader support