From 8d84ac9cf86b551f2c259ce7f67b3a9b2398adf8 Mon Sep 17 00:00:00 2001 From: fabioberger Date: Thu, 3 Oct 2019 14:07:06 +0800 Subject: [PATCH] increase maxBuffer on exec call --- packages/monorepo-scripts/src/test_installation.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/monorepo-scripts/src/test_installation.ts b/packages/monorepo-scripts/src/test_installation.ts index a0d0bd1603..3ed8933414 100644 --- a/packages/monorepo-scripts/src/test_installation.ts +++ b/packages/monorepo-scripts/src/test_installation.ts @@ -143,7 +143,9 @@ async function testInstallPackageAsync( if (!isUnrunnablePkg) { const transpiledIndexFilePath = path.join(testDirectory, 'index.js'); utils.log(`Running test script with ${packageName} imported`); - await execAsync(`node ${transpiledIndexFilePath}`); + // tslint:disable-next-line:custom-no-magic-numbers + const fiveMb = 1024 * 1024 * 5; + await execAsync(`node ${transpiledIndexFilePath}`, {maxBuffer: fiveMb}); utils.log(`Successfully ran test script with ${packageName} imported`); } await rimrafAsync(testDirectory);