We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a8e936 commit dd93216Copy full SHA for dd93216
bin/tape
@@ -26,10 +26,12 @@ opts.require.forEach(function(module) {
26
});
27
28
opts._.forEach(function (arg) {
29
- glob(arg, function (err, files) {
30
- files.forEach(function (file) {
31
- require(resolvePath(cwd, file));
32
- });
+ // If glob does not match, `files` will be an empty array.
+ // Note: `glob.sync` may throw an error and crash the node process.
+ var files = glob.sync(arg);
+
33
+ files.forEach(function (file) {
34
+ require(resolvePath(cwd, file));
35
36
37
0 commit comments