Skip to content

Commit

Permalink
Merge pull request react-bootstrap#880 from react-bootstrap/coverage-…
Browse files Browse the repository at this point in the history
…src-all

Ensure all src folder js files are loaded for full code coverage analysis
  • Loading branch information
mtscout6 committed Jun 23, 2015
2 parents 14d7fa1 + 64f7731 commit a49c485
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 a49c485

Please sign in to comment.