Skip to content

Commit

Permalink
Fix regressions in v7 (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenoble authored and sindresorhus committed Aug 20, 2019
1 parent c1e272e commit f60a346
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.js
Expand Up @@ -51,12 +51,13 @@ module.exports = options => {
function flush(done) {
(async () => {
const subprocess = execa('mocha', files.concat(args), {
localDir: __dirname
localDir: __dirname,
preferLocal: true
});

if (!options.suppress) {
subprocess.stdout.pipe(subprocess.stdout);
subprocess.stderr.pipe(subprocess.stderr);
subprocess.stdout.pipe(process.stdout);
subprocess.stderr.pipe(process.stderr);
}

try {
Expand Down

0 comments on commit f60a346

Please sign in to comment.