Skip to content

Commit

Permalink
Increase the max buffer
Browse files Browse the repository at this point in the history
Fixes #169
  • Loading branch information
sindresorhus committed Apr 1, 2017
1 parent 43f4b4d commit 9cedf6e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const through = require('through2');
// TODO: Use execa localDir option when available
const npmRunPath = require('npm-run-path');

const HUNDRED_MEGABYTES = 1000 * 1000 * 100;

module.exports = opts => {
opts = Object.assign({
colors: true,
Expand Down Expand Up @@ -41,7 +43,10 @@ module.exports = opts => {

function flush(done) {
const env = npmRunPath.env({cwd: __dirname});
const proc = execa('mocha', files.concat(args), {env});
const proc = execa('mocha', files.concat(args), {
env,
maxBuffer: HUNDRED_MEGABYTES
});

proc.then(result => {
this.emit('_result', result);
Expand Down

0 comments on commit 9cedf6e

Please sign in to comment.