[execa] align to v0.7, add missing interfaces (#18251)

This commit is contained in:
Dimitri Benin
2017-07-24 19:28:19 +02:00
committed by Andy
parent bfbdf31ceb
commit 2ba36f6527
2 changed files with 27 additions and 6 deletions

View File

@@ -54,6 +54,15 @@ execa.shell('echo unicorns')
execa('echo', ['unicorns']).stdout.pipe(process.stdout);
execa('echo', ['unicorns']).stderr.pipe(process.stderr);
execa('forever', {extendEnv: false}).pid;
execa('forever', {argv0: 'hi'}).pid;
execa('forever', {localDir: '~'}).pid;
execa('forever', {reject: false}).pid;
execa('forever', {cleanup: false}).pid;
execa('forever', {stdin: 1}).pid;
execa('forever', {stdout: 'ignore'}).pid;
execa('forever', {stderr: undefined}).pid;
async () => {
const { stdout } = await execa('noop', ['foo'], { stripEof: false });
assert(stdout === 'foo\n');