Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function readTests(dirpath) {
return require("fs-readdir-recursive")(dirpath).reduce(function(acc, value) {
return acc.concat(require(path.join(dirpath, value)));
}, []);
}