Add more tests for the `verbose` option (#1127)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by ehmicky · committed by GitHub · parent f9f1199 · Browse files · 6 files·+156 added−67 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+156 added−67 removed
- tests:+156 added−67 removed
Provenance
- Commit
37e0024- Tree
9099fcd- Author
ehmicky <ehmicky@users.noreply.github.com>- Committer
GitHub <noreply@github.com>- Parent
f9f1199
6 files changed+156 added−67 removed
modified:test/helpers/verbose.js+9 added-10 removed
64 unmodified lines656667686970717273747576777869707172737475767778798064 unmodified linesconst normalizeDuration = stderr => stderr.replaceAll(/\(done in [^)]+\)/g, '(done in 0ms)');
export const getVerboseOption = (isVerbose, verbose = 'short') => ({verbose: isVerbose ? verbose : 'none'});
export const fdNoneOption = {stdout: 'none', stderr: 'none'};export const fdShortOption = {stdout: 'short', stderr: 'none'};export const fdFullOption = {stdout: 'full', stderr: 'none'};export const fdStdoutNoneOption = {stdout: 'none', stderr: 'full'};export const fdStderrNoneOption = {stdout: 'full', stderr: 'none'};export const fdStderrShortOption = {stdout: 'none', stderr: 'short'};export const fdStderrFullOption = {stdout: 'none', stderr: 'full'};export const fd3NoneOption = {stdout: 'full', fd3: 'none'};export const fd3ShortOption = {stdout: 'none', fd3: 'short'};export const fd3FullOption = {stdout: 'none', fd3: 'full'};export const stdoutNoneOption = {stdout: 'none'};export const stdoutShortOption = {stdout: 'short'};export const stdoutFullOption = {stdout: 'full'};export const stderrNoneOption = {stderr: 'none'};export const stderrShortOption = {stderr: 'short'};export const stderrFullOption = {stderr: 'full'};export const fd3NoneOption = {fd3: 'none'};export const fd3ShortOption = {fd3: 'short'};export const fd3FullOption = {fd3: 'full'};export const ipcNoneOption = {ipc: 'none'};export const ipcShortOption = {ipc: 'short'};export const ipcFullOption = {ipc: 'full'};modified:test/verbose/complete.js+36 added-9 removed
13 unmodified lines14 getCompletionLine,15 getCompletionLines,16 testTimestamp,17 getVerboseOption,18- fdNoneOption,19- fdShortOption,20- fdFullOption,18+ stdoutNoneOption,19+ stdoutShortOption,20+ stdoutFullOption,21+ stderrNoneOption,22+ stderrShortOption,23+ stderrFullOption,24+ fd3NoneOption,25+ fd3ShortOption,26+ fd3FullOption,27+ ipcNoneOption,28+ ipcShortOption,29+ ipcFullOption,30 } from '../helpers/verbose.js';31 32 setFixtureDirectory();33 3 unmodified lines37 };38 39 test('Prints completion, verbose "short"', testPrintCompletion, 'short', parentExecaAsync);40 test('Prints completion, verbose "full"', testPrintCompletion, 'full', parentExecaAsync);32-test('Prints completion, verbose "short", fd-specific', testPrintCompletion, fdShortOption, parentExecaAsync);33-test('Prints completion, verbose "full", fd-specific', testPrintCompletion, fdFullOption, parentExecaAsync);41+test('Prints completion, verbose "short", fd-specific stdout', testPrintCompletion, stdoutShortOption, parentExecaAsync);42+test('Prints completion, verbose "full", fd-specific stdout', testPrintCompletion, stdoutFullOption, parentExecaAsync);43+test('Prints completion, verbose "short", fd-specific stderr', testPrintCompletion, stderrShortOption, parentExecaAsync);44+test('Prints completion, verbose "full", fd-specific stderr', testPrintCompletion, stderrFullOption, parentExecaAsync);45+test('Prints completion, verbose "short", fd-specific fd3', testPrintCompletion, fd3ShortOption, parentExecaAsync);46+test('Prints completion, verbose "full", fd-specific fd3', testPrintCompletion, fd3FullOption, parentExecaAsync);47+test('Prints completion, verbose "short", fd-specific ipc', testPrintCompletion, ipcShortOption, parentExecaAsync);48+test('Prints completion, verbose "full", fd-specific ipc', testPrintCompletion, ipcFullOption, parentExecaAsync);49 test('Prints completion, verbose "short", sync', testPrintCompletion, 'short', parentExecaSync);50 test('Prints completion, verbose "full", sync', testPrintCompletion, 'full', parentExecaSync);36-test('Prints completion, verbose "short", fd-specific, sync', testPrintCompletion, fdShortOption, parentExecaSync);37-test('Prints completion, verbose "full", fd-specific, sync', testPrintCompletion, fdFullOption, parentExecaSync);51+test('Prints completion, verbose "short", fd-specific stdout, sync', testPrintCompletion, stdoutShortOption, parentExecaSync);52+test('Prints completion, verbose "full", fd-specific stdout, sync', testPrintCompletion, stdoutFullOption, parentExecaSync);53+test('Prints completion, verbose "short", fd-specific stderr, sync', testPrintCompletion, stderrShortOption, parentExecaSync);54+test('Prints completion, verbose "full", fd-specific stderr, sync', testPrintCompletion, stderrFullOption, parentExecaSync);55+test('Prints completion, verbose "short", fd-specific fd3, sync', testPrintCompletion, fd3ShortOption, parentExecaSync);56+test('Prints completion, verbose "full", fd-specific fd3, sync', testPrintCompletion, fd3FullOption, parentExecaSync);57+test('Prints completion, verbose "short", fd-specific ipc, sync', testPrintCompletion, ipcShortOption, parentExecaSync);58+test('Prints completion, verbose "full", fd-specific ipc, sync', testPrintCompletion, ipcFullOption, parentExecaSync);59 60 const testNoPrintCompletion = async (t, verbose, execaMethod) => {61 const {stderr} = await execaMethod('noop.js', [foobarString], {verbose});62 t.is(stderr, '');63 };64 65 test('Does not print completion, verbose "none"', testNoPrintCompletion, 'none', parentExecaAsync);66 test('Does not print completion, verbose default"', testNoPrintCompletion, undefined, parentExecaAsync);46-test('Does not print completion, verbose "none", fd-specific', testNoPrintCompletion, fdNoneOption, parentExecaAsync);67+test('Does not print completion, verbose "none", fd-specific stdout', testNoPrintCompletion, stdoutNoneOption, parentExecaAsync);68+test('Does not print completion, verbose "none", fd-specific stderr', testNoPrintCompletion, stderrNoneOption, parentExecaAsync);69+test('Does not print completion, verbose "none", fd-specific fd3', testNoPrintCompletion, fd3NoneOption, parentExecaAsync);70+test('Does not print completion, verbose "none", fd-specific ipc', testNoPrintCompletion, ipcNoneOption, parentExecaAsync);71 test('Does not print completion, verbose default", fd-specific', testNoPrintCompletion, {}, parentExecaAsync);72 test('Does not print completion, verbose "none", sync', testNoPrintCompletion, 'none', parentExecaSync);73 test('Does not print completion, verbose default", sync', testNoPrintCompletion, undefined, parentExecaSync);50-test('Does not print completion, verbose "none", fd-specific, sync', testNoPrintCompletion, fdNoneOption, parentExecaSync);74+test('Does not print completion, verbose "none", fd-specific stdout, sync', testNoPrintCompletion, stdoutNoneOption, parentExecaSync);75+test('Does not print completion, verbose "none", fd-specific stderr, sync', testNoPrintCompletion, stderrNoneOption, parentExecaSync);76+test('Does not print completion, verbose "none", fd-specific fd3, sync', testNoPrintCompletion, fd3NoneOption, parentExecaSync);77+test('Does not print completion, verbose "none", fd-specific ipc, sync', testNoPrintCompletion, ipcNoneOption, parentExecaSync);78 test('Does not print completion, verbose default", fd-specific, sync', testNoPrintCompletion, {}, parentExecaSync);79 80 const testPrintCompletionError = async (t, execaMethod) => {81 const stderr = await execaMethod(t, 'short');53 unmodified linesmodified:test/verbose/error.js+36 added-9 removed
12 unmodified lines13 getErrorLine,14 getErrorLines,15 testTimestamp,16 getVerboseOption,17- fdNoneOption,18- fdShortOption,19- fdFullOption,17+ stdoutNoneOption,18+ stdoutShortOption,19+ stdoutFullOption,20+ stderrNoneOption,21+ stderrShortOption,22+ stderrFullOption,23+ fd3NoneOption,24+ fd3ShortOption,25+ fd3FullOption,26+ ipcNoneOption,27+ ipcShortOption,28+ ipcFullOption,29 } from '../helpers/verbose.js';30 31 setFixtureDirectory();32 5 unmodified lines38 };39 40 test('Prints error, verbose "short"', testPrintError, 'short', runErrorSubprocessAsync);41 test('Prints error, verbose "full"', testPrintError, 'full', runErrorSubprocessAsync);33-test('Prints error, verbose "short", fd-specific', testPrintError, fdShortOption, runErrorSubprocessAsync);34-test('Prints error, verbose "full", fd-specific', testPrintError, fdFullOption, runErrorSubprocessAsync);42+test('Prints error, verbose "short", fd-specific stdout', testPrintError, stdoutShortOption, runErrorSubprocessAsync);43+test('Prints error, verbose "full", fd-specific stdout', testPrintError, stdoutFullOption, runErrorSubprocessAsync);44+test('Prints error, verbose "short", fd-specific stderr', testPrintError, stderrShortOption, runErrorSubprocessAsync);45+test('Prints error, verbose "full", fd-specific stderr', testPrintError, stderrFullOption, runErrorSubprocessAsync);46+test('Prints error, verbose "short", fd-specific fd3', testPrintError, fd3ShortOption, runErrorSubprocessAsync);47+test('Prints error, verbose "full", fd-specific fd3', testPrintError, fd3FullOption, runErrorSubprocessAsync);48+test('Prints error, verbose "short", fd-specific ipc', testPrintError, ipcShortOption, runErrorSubprocessAsync);49+test('Prints error, verbose "full", fd-specific ipc', testPrintError, ipcFullOption, runErrorSubprocessAsync);50 test('Prints error, verbose "short", sync', testPrintError, 'short', runErrorSubprocessSync);51 test('Prints error, verbose "full", sync', testPrintError, 'full', runErrorSubprocessSync);37-test('Prints error, verbose "short", fd-specific, sync', testPrintError, fdShortOption, runErrorSubprocessSync);38-test('Prints error, verbose "full", fd-specific, sync', testPrintError, fdFullOption, runErrorSubprocessSync);52+test('Prints error, verbose "short", fd-specific stdout, sync', testPrintError, stdoutShortOption, runErrorSubprocessSync);53+test('Prints error, verbose "full", fd-specific stdout, sync', testPrintError, stdoutFullOption, runErrorSubprocessSync);54+test('Prints error, verbose "short", fd-specific stderr, sync', testPrintError, stderrShortOption, runErrorSubprocessSync);55+test('Prints error, verbose "full", fd-specific stderr, sync', testPrintError, stderrFullOption, runErrorSubprocessSync);56+test('Prints error, verbose "short", fd-specific fd3, sync', testPrintError, fd3ShortOption, runErrorSubprocessSync);57+test('Prints error, verbose "full", fd-specific fd3, sync', testPrintError, fd3FullOption, runErrorSubprocessSync);58+test('Prints error, verbose "short", fd-specific ipc, sync', testPrintError, ipcShortOption, runErrorSubprocessSync);59+test('Prints error, verbose "full", fd-specific ipc, sync', testPrintError, ipcFullOption, runErrorSubprocessSync);60 61 const testNoPrintError = async (t, verbose, execaMethod) => {62 const stderr = await execaMethod(t, verbose, false);63 t.is(getErrorLine(stderr), undefined);64 };65 66 test('Does not print error, verbose "none"', testNoPrintError, 'none', runErrorSubprocessAsync);67 test('Does not print error, verbose default', testNoPrintError, undefined, runErrorSubprocessAsync);47-test('Does not print error, verbose "none", fd-specific', testNoPrintError, fdNoneOption, runErrorSubprocessAsync);68+test('Does not print error, verbose "none", fd-specific stdout', testNoPrintError, stdoutNoneOption, runErrorSubprocessAsync);69+test('Does not print error, verbose "none", fd-specific stderr', testNoPrintError, stderrNoneOption, runErrorSubprocessAsync);70+test('Does not print error, verbose "none", fd-specific fd3', testNoPrintError, fd3NoneOption, runErrorSubprocessAsync);71+test('Does not print error, verbose "none", fd-specific ipc', testNoPrintError, ipcNoneOption, runErrorSubprocessAsync);72 test('Does not print error, verbose default, fd-specific', testNoPrintError, {}, runErrorSubprocessAsync);73 test('Does not print error, verbose "none", sync', testNoPrintError, 'none', runErrorSubprocessSync);74 test('Does not print error, verbose default, sync', testNoPrintError, undefined, runErrorSubprocessSync);51-test('Does not print error, verbose "none", fd-specific, sync', testNoPrintError, fdNoneOption, runErrorSubprocessSync);75+test('Does not print error, verbose "none", fd-specific stdout, sync', testNoPrintError, stdoutNoneOption, runErrorSubprocessSync);76+test('Does not print error, verbose "none", fd-specific stderr, sync', testNoPrintError, stderrNoneOption, runErrorSubprocessSync);77+test('Does not print error, verbose "none", fd-specific fd3, sync', testNoPrintError, fd3NoneOption, runErrorSubprocessSync);78+test('Does not print error, verbose "none", fd-specific ipc, sync', testNoPrintError, ipcNoneOption, runErrorSubprocessSync);79 test('Does not print error, verbose default, fd-specific, sync', testNoPrintError, {}, runErrorSubprocessSync);80 81 const testPrintNoError = async (t, execaMethod) => {82 const {stderr} = await execaMethod('noop.js', [foobarString], {verbose: 'short'});90 unmodified linesmodified:test/verbose/output-buffer.js+13 added-10 removed
3 unmodified lines4567898910111213143 unmodified lines181920212122232424252626272728293031313233343233343536373839404111 unmodified lines3 unmodified linesimport {parentExeca, parentExecaAsync, parentExecaSync} from '../helpers/nested.js';import { getOutputLine, testTimestamp, fdFullOption, fdStderrFullOption, stdoutNoneOption, stdoutFullOption, stderrFullOption,} from '../helpers/verbose.js';
setFixtureDirectory();
3 unmodified lines};
test('Prints stdout, buffer: false', testPrintOutputNoBuffer, 'full', false, parentExecaAsync);test('Prints stdout, buffer: false, fd-specific buffer', testPrintOutputNoBuffer, 'full', {stdout: false}, parentExecaAsync);test('Prints stdout, buffer: false, fd-specific verbose', testPrintOutputNoBuffer, fdFullOption, false, parentExecaAsync);test('Prints stdout, buffer: false, fd-specific verbose', testPrintOutputNoBuffer, stdoutFullOption, false, parentExecaAsync);test('Prints stdout, buffer: false, sync', testPrintOutputNoBuffer, 'full', false, parentExecaSync);test('Prints stdout, buffer: false, fd-specific buffer, sync', testPrintOutputNoBuffer, 'full', {stdout: false}, parentExecaSync);test('Prints stdout, buffer: false, fd-specific verbose, sync', testPrintOutputNoBuffer, fdFullOption, false, parentExecaSync);test('Prints stdout, buffer: false, fd-specific verbose, sync', testPrintOutputNoBuffer, stdoutFullOption, false, parentExecaSync);
const testPrintOutputNoBufferFalse = async (t, buffer, execaMethod) => { const {stderr} = await execaMethod('noop.js', [foobarString], {verbose: fdStderrFullOption, buffer});const testPrintOutputNoBufferFalse = async (t, verbose, buffer, execaMethod) => { const {stderr} = await execaMethod('noop.js', [foobarString], {verbose, buffer}); t.is(getOutputLine(stderr), undefined);};
test('Does not print stdout, buffer: false, different fd', testPrintOutputNoBufferFalse, false, parentExecaAsync);test('Does not print stdout, buffer: false, different fd, fd-specific buffer', testPrintOutputNoBufferFalse, {stdout: false}, parentExecaAsync);test('Does not print stdout, buffer: false, different fd, sync', testPrintOutputNoBufferFalse, false, parentExecaSync);test('Does not print stdout, buffer: false, different fd, fd-specific buffer, sync', testPrintOutputNoBufferFalse, {stdout: false}, parentExecaSync);test('Does not print stdout, buffer: false, fd-specific none', testPrintOutputNoBufferFalse, stdoutNoneOption, false, parentExecaAsync);test('Does not print stdout, buffer: false, different fd', testPrintOutputNoBufferFalse, stderrFullOption, false, parentExecaAsync);test('Does not print stdout, buffer: false, different fd, fd-specific buffer', testPrintOutputNoBufferFalse, stderrFullOption, {stdout: false}, parentExecaAsync);test('Does not print stdout, buffer: false, fd-specific none, sync', testPrintOutputNoBufferFalse, stdoutNoneOption, false, parentExecaSync);test('Does not print stdout, buffer: false, different fd, sync', testPrintOutputNoBufferFalse, stderrFullOption, false, parentExecaSync);test('Does not print stdout, buffer: false, different fd, fd-specific buffer, sync', testPrintOutputNoBufferFalse, stderrFullOption, {stdout: false}, parentExecaSync);
const testPrintOutputNoBufferTransform = async (t, buffer, isSync) => { const {stderr} = await parentExeca('nested-transform.js', 'noop.js', [foobarString], { verbose: 'full',11 unmodified linesmodified:test/verbose/output-enable.js+18 added-18 removed
13 unmodified lines14 runErrorSubprocessSync,15 getOutputLine,16 getOutputLines,17 testTimestamp,18- fdShortOption,19- fdFullOption,20- fdStdoutNoneOption,21- fdStderrNoneOption,22- fdStderrShortOption,23- fdStderrFullOption,18+ stdoutNoneOption,19+ stdoutShortOption,20+ stdoutFullOption,21+ stderrNoneOption,22+ stderrShortOption,23+ stderrFullOption,24 fd3NoneOption,25 fd3ShortOption,26 fd3FullOption,27 } from '../helpers/verbose.js';6 unmodified lines34 };35 36 test('Prints stdout, verbose "full"', testPrintOutput, 'full', 1, parentExecaAsync);37 test('Prints stderr, verbose "full"', testPrintOutput, 'full', 2, parentExecaAsync);38-test('Prints stdout, verbose "full", fd-specific', testPrintOutput, fdFullOption, 1, parentExecaAsync);39-test('Prints stderr, verbose "full", fd-specific', testPrintOutput, fdStderrFullOption, 2, parentExecaAsync);38+test('Prints stdout, verbose "full", fd-specific', testPrintOutput, stdoutFullOption, 1, parentExecaAsync);39+test('Prints stderr, verbose "full", fd-specific', testPrintOutput, stderrFullOption, 2, parentExecaAsync);40 test('Prints stdout, verbose "full", sync', testPrintOutput, 'full', 1, parentExecaSync);41 test('Prints stderr, verbose "full", sync', testPrintOutput, 'full', 2, parentExecaSync);42-test('Prints stdout, verbose "full", fd-specific, sync', testPrintOutput, fdFullOption, 1, parentExecaSync);43-test('Prints stderr, verbose "full", fd-specific, sync', testPrintOutput, fdStderrFullOption, 2, parentExecaSync);42+test('Prints stdout, verbose "full", fd-specific, sync', testPrintOutput, stdoutFullOption, 1, parentExecaSync);43+test('Prints stderr, verbose "full", fd-specific, sync', testPrintOutput, stderrFullOption, 2, parentExecaSync);44 45 const testNoPrintOutput = async (t, verbose, fdNumber, execaMethod) => {46 const {stderr} = await execaMethod('noop-fd.js', [`${fdNumber}`, foobarString], {verbose, ...fullStdio});47 t.is(getOutputLine(stderr), undefined);9 unmodified lines57 test('Does not print stdio[*], verbose "none"', testNoPrintOutput, 'none', 3, parentExecaAsync);58 test('Does not print stdio[*], verbose "short"', testNoPrintOutput, 'short', 3, parentExecaAsync);59 test('Does not print stdio[*], verbose "full"', testNoPrintOutput, 'full', 3, parentExecaAsync);60 test('Does not print stdout, verbose default, fd-specific', testNoPrintOutput, {}, 1, parentExecaAsync);61-test('Does not print stdout, verbose "none", fd-specific', testNoPrintOutput, fdStdoutNoneOption, 1, parentExecaAsync);62-test('Does not print stdout, verbose "short", fd-specific', testNoPrintOutput, fdShortOption, 1, parentExecaAsync);61+test('Does not print stdout, verbose "none", fd-specific', testNoPrintOutput, stdoutNoneOption, 1, parentExecaAsync);62+test('Does not print stdout, verbose "short", fd-specific', testNoPrintOutput, stdoutShortOption, 1, parentExecaAsync);63 test('Does not print stderr, verbose default, fd-specific', testNoPrintOutput, {}, 2, parentExecaAsync);64-test('Does not print stderr, verbose "none", fd-specific', testNoPrintOutput, fdStderrNoneOption, 2, parentExecaAsync);65-test('Does not print stderr, verbose "short", fd-specific', testNoPrintOutput, fdStderrShortOption, 2, parentExecaAsync);64+test('Does not print stderr, verbose "none", fd-specific', testNoPrintOutput, stderrNoneOption, 2, parentExecaAsync);65+test('Does not print stderr, verbose "short", fd-specific', testNoPrintOutput, stderrShortOption, 2, parentExecaAsync);66 test('Does not print stdio[*], verbose default, fd-specific', testNoPrintOutput, {}, 3, parentExecaAsync);67 test('Does not print stdio[*], verbose "none", fd-specific', testNoPrintOutput, fd3NoneOption, 3, parentExecaAsync);68 test('Does not print stdio[*], verbose "short", fd-specific', testNoPrintOutput, fd3ShortOption, 3, parentExecaAsync);69 test('Does not print stdio[*], verbose "full", fd-specific', testNoPrintOutput, fd3FullOption, 3, parentExecaAsync);7 unmodified lines77 test('Does not print stdio[*], verbose "none", sync', testNoPrintOutput, 'none', 3, parentExecaSync);78 test('Does not print stdio[*], verbose "short", sync', testNoPrintOutput, 'short', 3, parentExecaSync);79 test('Does not print stdio[*], verbose "full", sync', testNoPrintOutput, 'full', 3, parentExecaSync);80 test('Does not print stdout, verbose default, fd-specific, sync', testNoPrintOutput, {}, 1, parentExecaSync);81-test('Does not print stdout, verbose "none", fd-specific, sync', testNoPrintOutput, fdStdoutNoneOption, 1, parentExecaSync);82-test('Does not print stdout, verbose "short", fd-specific, sync', testNoPrintOutput, fdShortOption, 1, parentExecaSync);81+test('Does not print stdout, verbose "none", fd-specific, sync', testNoPrintOutput, stdoutNoneOption, 1, parentExecaSync);82+test('Does not print stdout, verbose "short", fd-specific, sync', testNoPrintOutput, stdoutShortOption, 1, parentExecaSync);83 test('Does not print stderr, verbose default, fd-specific, sync', testNoPrintOutput, {}, 2, parentExecaSync);84-test('Does not print stderr, verbose "none", fd-specific, sync', testNoPrintOutput, fdStderrNoneOption, 2, parentExecaSync);85-test('Does not print stderr, verbose "short", fd-specific, sync', testNoPrintOutput, fdStderrShortOption, 2, parentExecaSync);84+test('Does not print stderr, verbose "none", fd-specific, sync', testNoPrintOutput, stderrNoneOption, 2, parentExecaSync);85+test('Does not print stderr, verbose "short", fd-specific, sync', testNoPrintOutput, stderrShortOption, 2, parentExecaSync);86 test('Does not print stdio[*], verbose default, fd-specific, sync', testNoPrintOutput, {}, 3, parentExecaSync);87 test('Does not print stdio[*], verbose "none", fd-specific, sync', testNoPrintOutput, fd3NoneOption, 3, parentExecaSync);88 test('Does not print stdio[*], verbose "short", fd-specific, sync', testNoPrintOutput, fd3ShortOption, 3, parentExecaSync);89 test('Does not print stdio[*], verbose "full", fd-specific, sync', testNoPrintOutput, fd3FullOption, 3, parentExecaSync);57 unmodified linesmodified:test/verbose/start.js+44 added-11 removed
12 unmodified lines13 getCommandLine,14 getCommandLines,15 testTimestamp,16 getVerboseOption,17- fdNoneOption,18- fdShortOption,19- fdFullOption,17+ stdoutNoneOption,18+ stdoutShortOption,19+ stdoutFullOption,20+ stderrNoneOption,21+ stderrShortOption,22+ stderrFullOption,23+ fd3NoneOption,24+ fd3ShortOption,25+ fd3FullOption,26+ ipcNoneOption,27+ ipcShortOption,28+ ipcFullOption,29 } from '../helpers/verbose.js';30 31 setFixtureDirectory();32 3 unmodified lines36 };37 38 test('Prints command, verbose "short"', testPrintCommand, 'short', parentExecaAsync);39 test('Prints command, verbose "full"', testPrintCommand, 'full', parentExecaAsync);31-test('Prints command, verbose "short", fd-specific', testPrintCommand, fdShortOption, parentExecaAsync);32-test('Prints command, verbose "full", fd-specific', testPrintCommand, fdFullOption, parentExecaAsync);40+test('Prints command, verbose "short", fd-specific stdout', testPrintCommand, stdoutShortOption, parentExecaAsync);41+test('Prints command, verbose "full", fd-specific stdout', testPrintCommand, stdoutFullOption, parentExecaAsync);42+test('Prints command, verbose "short", fd-specific stderr', testPrintCommand, stderrShortOption, parentExecaAsync);43+test('Prints command, verbose "full", fd-specific stderr', testPrintCommand, stderrFullOption, parentExecaAsync);44+test('Prints command, verbose "short", fd-specific fd3', testPrintCommand, fd3ShortOption, parentExecaAsync);45+test('Prints command, verbose "full", fd-specific fd3', testPrintCommand, fd3FullOption, parentExecaAsync);46+test('Prints command, verbose "short", fd-specific ipc', testPrintCommand, ipcShortOption, parentExecaAsync);47+test('Prints command, verbose "full", fd-specific ipc', testPrintCommand, ipcFullOption, parentExecaAsync);48 test('Prints command, verbose "short", sync', testPrintCommand, 'short', parentExecaSync);49 test('Prints command, verbose "full", sync', testPrintCommand, 'full', parentExecaSync);35-test('Prints command, verbose "short", fd-specific, sync', testPrintCommand, fdShortOption, parentExecaSync);36-test('Prints command, verbose "full", fd-specific, sync', testPrintCommand, fdFullOption, parentExecaSync);50+test('Prints command, verbose "short", fd-specific stdout, sync', testPrintCommand, stdoutShortOption, parentExecaSync);51+test('Prints command, verbose "full", fd-specific stdout, sync', testPrintCommand, stdoutFullOption, parentExecaSync);52+test('Prints command, verbose "short", fd-specific stderr, sync', testPrintCommand, stderrShortOption, parentExecaSync);53+test('Prints command, verbose "full", fd-specific stderr, sync', testPrintCommand, stderrFullOption, parentExecaSync);54+test('Prints command, verbose "short", fd-specific fd3, sync', testPrintCommand, fd3ShortOption, parentExecaSync);55+test('Prints command, verbose "full", fd-specific fd3, sync', testPrintCommand, fd3FullOption, parentExecaSync);56+test('Prints command, verbose "short", fd-specific ipc, sync', testPrintCommand, ipcShortOption, parentExecaSync);57+test('Prints command, verbose "full", fd-specific ipc, sync', testPrintCommand, ipcFullOption, parentExecaSync);58 test('Prints command, verbose "short", worker', testPrintCommand, 'short', parentWorker);59 test('Prints command, verbose "full", worker', testPrintCommand, 'full', parentWorker);39-test('Prints command, verbose "short", fd-specific, worker', testPrintCommand, fdShortOption, parentWorker);40-test('Prints command, verbose "full", fd-specific, worker', testPrintCommand, fdFullOption, parentWorker);60+test('Prints command, verbose "short", fd-specific stdout, worker', testPrintCommand, stdoutShortOption, parentWorker);61+test('Prints command, verbose "full", fd-specific stdout, worker', testPrintCommand, stdoutFullOption, parentWorker);62+test('Prints command, verbose "short", fd-specific stderr, worker', testPrintCommand, stderrShortOption, parentWorker);63+test('Prints command, verbose "full", fd-specific stderr, worker', testPrintCommand, stderrFullOption, parentWorker);64+test('Prints command, verbose "short", fd-specific fd3, worker', testPrintCommand, fd3ShortOption, parentWorker);65+test('Prints command, verbose "full", fd-specific fd3, worker', testPrintCommand, fd3FullOption, parentWorker);66+test('Prints command, verbose "short", fd-specific ipc, worker', testPrintCommand, ipcShortOption, parentWorker);67+test('Prints command, verbose "full", fd-specific ipc, worker', testPrintCommand, ipcFullOption, parentWorker);68 69 const testNoPrintCommand = async (t, verbose, execaMethod) => {70 const {stderr} = await execaMethod('noop.js', [foobarString], {verbose});71 t.is(stderr, '');72 };73 74 test('Does not print command, verbose "none"', testNoPrintCommand, 'none', parentExecaAsync);75 test('Does not print command, verbose default', testNoPrintCommand, undefined, parentExecaAsync);49-test('Does not print command, verbose "none", fd-specific', testNoPrintCommand, fdNoneOption, parentExecaAsync);76+test('Does not print command, verbose "none", fd-specific stdout', testNoPrintCommand, stdoutNoneOption, parentExecaAsync);77+test('Does not print command, verbose "none", fd-specific stderr', testNoPrintCommand, stderrNoneOption, parentExecaAsync);78+test('Does not print command, verbose "none", fd-specific fd3', testNoPrintCommand, fd3NoneOption, parentExecaAsync);79+test('Does not print command, verbose "none", fd-specific ipc', testNoPrintCommand, ipcNoneOption, parentExecaAsync);80 test('Does not print command, verbose default, fd-specific', testNoPrintCommand, {}, parentExecaAsync);81 test('Does not print command, verbose "none", sync', testNoPrintCommand, 'none', parentExecaSync);82 test('Does not print command, verbose default, sync', testNoPrintCommand, undefined, parentExecaSync);53-test('Does not print command, verbose "none", fd-specific, sync', testNoPrintCommand, fdNoneOption, parentExecaSync);83+test('Does not print command, verbose "none", fd-specific stdout, sync', testNoPrintCommand, stdoutNoneOption, parentExecaSync);84+test('Does not print command, verbose "none", fd-specific stderr, sync', testNoPrintCommand, stderrNoneOption, parentExecaSync);85+test('Does not print command, verbose "none", fd-specific fd3, sync', testNoPrintCommand, fd3NoneOption, parentExecaSync);86+test('Does not print command, verbose "none", fd-specific ipc, sync', testNoPrintCommand, ipcNoneOption, parentExecaSync);87 test('Does not print command, verbose default, fd-specific, sync', testNoPrintCommand, {}, parentExecaSync);88 89 const testPrintCommandError = async (t, execaMethod) => {90 const stderr = await execaMethod(t, 'short');65 unmodified lines