From 64f77313e75d0bb1cce38a7c9e9f7f5f840865f2 Mon Sep 17 00:00:00 2001 From: Matthew Smith Date: Mon, 22 Jun 2015 19:57:53 -0600 Subject: [PATCH] Ensure all src folder js files are loaded for full code coverage analysis --- test/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/index.js b/test/index.js index b3998914c4..73c1d4ba3e 100644 --- a/test/index.js +++ b/test/index.js @@ -19,5 +19,9 @@ describe('Process environment for tests', function () { }); }); +// Ensure all files in src folder are loaded for proper code coverage analysis +const srcContext = require.context('../src', true, /.*\.js$/); +srcContext.keys().forEach(srcContext); + const testsContext = require.context('.', true, /Spec$/); testsContext.keys().forEach(testsContext);