File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,13 @@ import { deleteNetwork, findContainer } from '../utils/docker'
12
12
chaiUse ( chaiAsPromised )
13
13
let testFailed = false
14
14
15
- async function runCommand ( args : string ) : Promise < ReturnType < typeof runCommandRaw > > {
15
+ async function runCommand ( args : string ) : Promise < ReturnType < typeof runCommandRaw > > {
16
16
const result = await runCommandRaw ( args )
17
17
18
18
if ( result . error ) {
19
- console . log ( result . stdout )
20
- console . error ( result . stderr )
19
+ console . log ( '============\n=> ERROR:' , result . error )
20
+ console . log ( '============\n=> STDOUT:' , result . stdout )
21
+ console . error ( '============\n=> STDERR:' , result . stderr )
21
22
}
22
23
23
24
return result
@@ -72,7 +73,9 @@ describe('start command', () => {
72
73
const containers = await docker . listContainers ( )
73
74
for ( const c of containers ) console . log ( ` - ${ c . Names . join ( ', ' ) } ` )
74
75
75
- await runCommand ( 'logs client' )
76
+ const { stdout } = await runCommand ( 'logs client' )
77
+ console . log ( 'Client logs:\n' , stdout )
78
+
76
79
}
77
80
78
81
await runCommand ( 'stop' )
You can’t perform that action at this time.
0 commit comments