increase maxBuffer on exec call

This commit is contained in:
fabioberger
2019-10-03 14:07:06 +08:00
parent 17219d22c3
commit 8d84ac9cf8

View File

@@ -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);