@@ -15,9 +15,18 @@ import {
15
15
getCompletionLines ,
16
16
testTimestamp ,
17
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 ,
21
30
} from '../helpers/verbose.js' ;
22
31
23
32
setFixtureDirectory ( ) ;
@@ -29,12 +38,24 @@ const testPrintCompletion = async (t, verbose, execaMethod) => {
29
38
30
39
test ( 'Prints completion, verbose "short"' , testPrintCompletion , 'short' , parentExecaAsync ) ;
31
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 ) ;
34
49
test ( 'Prints completion, verbose "short", sync' , testPrintCompletion , 'short' , parentExecaSync ) ;
35
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 ) ;
38
59
39
60
const testNoPrintCompletion = async ( t , verbose , execaMethod ) => {
40
61
const { stderr} = await execaMethod ( 'noop.js' , [ foobarString ] , { verbose} ) ;
@@ -43,11 +64,17 @@ const testNoPrintCompletion = async (t, verbose, execaMethod) => {
43
64
44
65
test ( 'Does not print completion, verbose "none"' , testNoPrintCompletion , 'none' , parentExecaAsync ) ;
45
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 ) ;
47
71
test ( 'Does not print completion, verbose default", fd-specific' , testNoPrintCompletion , { } , parentExecaAsync ) ;
48
72
test ( 'Does not print completion, verbose "none", sync' , testNoPrintCompletion , 'none' , parentExecaSync ) ;
49
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 ) ;
51
78
test ( 'Does not print completion, verbose default", fd-specific, sync' , testNoPrintCompletion , { } , parentExecaSync ) ;
52
79
53
80
const testPrintCompletionError = async ( t , execaMethod ) => {
0 commit comments