diff --git a/bin/tape b/bin/tape index 2f519d90..e2604d7e 100755 --- a/bin/tape +++ b/bin/tape @@ -18,11 +18,12 @@ if (typeof opts.require === 'string') { } opts.require.forEach(function (module) { + var options = { basedir: cwd, extensions: Object.keys(require.extensions) }; if (module) { /* This check ensures we ignore `-r ""`, trailing `-r`, or * other silly things the user might (inadvertently) be doing. */ - require(resolveModule(module, { basedir: cwd })); + require(resolveModule(module, options)); } });