Added support for coverage reporting (as requested in https://github.com/newtriks/generator-react-webpack/issues/158)

This commit is contained in:
Chris
2015-10-27 08:08:26 +01:00
parent ed4e8a17f3
commit 89f6f1701b
5 changed files with 51 additions and 9 deletions
+4 -1
View File
@@ -1,2 +1,5 @@
var testsContext = require.context('.', true, /(Test\.js$)|(Helper\.js$)/);
'use strict';
// Add support for all files in the test directory
const testsContext = require.context('.', true, /(Test\.js$)|(Helper\.js$)/);
testsContext.keys().forEach(testsContext);