File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,10 @@ export default testSuite(({ describe }, node: NodeApis) => {
326
326
327
327
onTestFail ( ( ) => {
328
328
p . kill ( ) ;
329
- console . log ( p . logs ) ;
329
+ console . log ( {
330
+ logs : p . logs ,
331
+ stdout : p . getStdout ( ) ,
332
+ } ) ;
330
333
} ) ;
331
334
332
335
expect ( await p . output ) . toMatch ( / E X I T _ C O D E : \s + 1 3 0 / ) ;
@@ -351,7 +354,10 @@ export default testSuite(({ describe }, node: NodeApis) => {
351
354
352
355
onTestFail ( ( ) => {
353
356
p . kill ( ) ;
354
- console . log ( p . logs ) ;
357
+ console . log ( {
358
+ logs : p . logs ,
359
+ stdout : p . getStdout ( ) ,
360
+ } ) ;
355
361
} ) ;
356
362
357
363
expectMatchInOrder ( await p . output , [
@@ -382,7 +388,10 @@ export default testSuite(({ describe }, node: NodeApis) => {
382
388
383
389
onTestFail ( ( ) => {
384
390
p . kill ( ) ;
385
- console . log ( p . logs ) ;
391
+ console . log ( {
392
+ logs : p . logs ,
393
+ stdout : p . getStdout ( ) ,
394
+ } ) ;
386
395
} ) ;
387
396
388
397
expect ( await p . output ) . toMatch ( / E X I T _ C O D E : \s + 1 3 0 / ) ;
Original file line number Diff line number Diff line change @@ -127,5 +127,6 @@ export const ptyShell = (
127
127
return Object . assign ( childProcess , {
128
128
output,
129
129
logs,
130
+ getStdout : ( ) => buffer ,
130
131
} ) ;
131
132
} ;
You can’t perform that action at this time.
0 commit comments