@@ -15,9 +15,18 @@ import {
1515 getCompletionLines ,
1616 testTimestamp ,
1717 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 ,
2130} from '../helpers/verbose.js' ;
2231
2332setFixtureDirectory ( ) ;
@@ -29,12 +38,24 @@ const testPrintCompletion = async (t, verbose, execaMethod) => {
2938
3039test ( 'Prints completion, verbose "short"' , testPrintCompletion , 'short' , parentExecaAsync ) ;
3140test ( '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 ) ;
3449test ( 'Prints completion, verbose "short", sync' , testPrintCompletion , 'short' , parentExecaSync ) ;
3550test ( '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 ) ;
3859
3960const testNoPrintCompletion = async ( t , verbose , execaMethod ) => {
4061 const { stderr} = await execaMethod ( 'noop.js' , [ foobarString ] , { verbose} ) ;
@@ -43,11 +64,17 @@ const testNoPrintCompletion = async (t, verbose, execaMethod) => {
4364
4465test ( 'Does not print completion, verbose "none"' , testNoPrintCompletion , 'none' , parentExecaAsync ) ;
4566test ( '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 ) ;
4771test ( 'Does not print completion, verbose default", fd-specific' , testNoPrintCompletion , { } , parentExecaAsync ) ;
4872test ( 'Does not print completion, verbose "none", sync' , testNoPrintCompletion , 'none' , parentExecaSync ) ;
4973test ( '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 ) ;
5178test ( 'Does not print completion, verbose default", fd-specific, sync' , testNoPrintCompletion , { } , parentExecaSync ) ;
5279
5380const testPrintCompletionError = async ( t , execaMethod ) => {
0 commit comments