Skip to content

Commit f60a346

Browse files
jlenoblesindresorhus
authored andcommitted
Fix regressions in v7 (#197)
1 parent c1e272e commit f60a346

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,13 @@ module.exports = options => {
5151
function flush(done) {
5252
(async () => {
5353
const subprocess = execa('mocha', files.concat(args), {
54-
localDir: __dirname
54+
localDir: __dirname,
55+
preferLocal: true
5556
});
5657

5758
if (!options.suppress) {
58-
subprocess.stdout.pipe(subprocess.stdout);
59-
subprocess.stderr.pipe(subprocess.stderr);
59+
subprocess.stdout.pipe(process.stdout);
60+
subprocess.stderr.pipe(process.stderr);
6061
}
6162

6263
try {

0 commit comments

Comments
 (0)