Skip to content

Commit 9cedf6e

Browse files
committed
Increase the max buffer
Fixes #169
1 parent 43f4b4d commit 9cedf6e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ const through = require('through2');
66
// TODO: Use execa localDir option when available
77
const npmRunPath = require('npm-run-path');
88

9+
const HUNDRED_MEGABYTES = 1000 * 1000 * 100;
10+
911
module.exports = opts => {
1012
opts = Object.assign({
1113
colors: true,
@@ -41,7 +43,10 @@ module.exports = opts => {
4143

4244
function flush(done) {
4345
const env = npmRunPath.env({cwd: __dirname});
44-
const proc = execa('mocha', files.concat(args), {env});
46+
const proc = execa('mocha', files.concat(args), {
47+
env,
48+
maxBuffer: HUNDRED_MEGABYTES
49+
});
4550

4651
proc.then(result => {
4752
this.emit('_result', result);

0 commit comments

Comments
 (0)