We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43f4b4d commit 9cedf6eCopy full SHA for 9cedf6e
1 file changed
index.js
@@ -6,6 +6,8 @@ const through = require('through2');
6
// TODO: Use execa localDir option when available
7
const npmRunPath = require('npm-run-path');
8
9
+const HUNDRED_MEGABYTES = 1000 * 1000 * 100;
10
+
11
module.exports = opts => {
12
opts = Object.assign({
13
colors: true,
@@ -41,7 +43,10 @@ module.exports = opts => {
41
43
42
44
function flush(done) {
45
const env = npmRunPath.env({cwd: __dirname});
- const proc = execa('mocha', files.concat(args), {env});
46
+ const proc = execa('mocha', files.concat(args), {
47
+ env,
48
+ maxBuffer: HUNDRED_MEGABYTES
49
+ });
50
51
proc.then(result => {
52
this.emit('_result', result);
0 commit comments