Skip to content
Myr

Validate `verbose` option (#990)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ehmicky · committed by GitHub · parent be91ecf · Browse files · 3 files+39 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+39 added−1 removed

  • tests:+19 added−1 removed
  • other:+20 added−0 removed

3 files+39 added−1 removed

modified:lib/verbose/info.js+20 added
modified:test/verbose/info.js+18 added
modified:test/verbose/output-enable.js+1 added-1 removed
120 unmodified lines
121 t.is(getOutputLine(stderr), `${testTimestamp} [0] \\u0001`);122});123124const testStdioSame = async (t, fdNumber) => {125 const {stdio} = await nestedExecaAsync('noop-fd.js', [`${fdNumber}`, foobarString], {verbose: true});125 const {stdio} = await nestedExecaAsync('noop-fd.js', [`${fdNumber}`, foobarString], {verbose: 'full'});126 t.is(stdio[fdNumber], foobarString);127};128129test('Does not change subprocess.stdout', testStdioSame, 1);
17 unmodified lines