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);