mirror of
https://github.com/wassname/react-webpack-template.git
synced 2026-07-10 01:39:51 +08:00
Added support for coverage reporting (as requested in https://github.com/newtriks/generator-react-webpack/issues/158)
This commit is contained in:
+4
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user