Skip to content

Commit

Permalink
Ensure all src folder js files are loaded for full code coverage anal…
Browse files Browse the repository at this point in the history
…ysis
  • Loading branch information
mtscout6 committed Jun 23, 2015
1 parent d00d9c7 commit 64f7731
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 64f7731

Please sign in to comment.