@@ -5,7 +5,7 @@ import logger from '../logger'
5
5
import parser from './parser'
6
6
import { debounce , throttle } from './throttle'
7
7
import onError from '../sentry/onError'
8
- import { clearOutput , displayOutput } from './output'
8
+ import { clearOutput , addOutput } from './output'
9
9
import { formatFailOutput } from './formatOutput'
10
10
11
11
interface Callbacks {
@@ -51,7 +51,7 @@ const createTestRunner = (config: TT.TutorialTestRunnerConfig, callbacks: Callba
51
51
52
52
const tap = parser ( stdout || '' )
53
53
54
- displayOutput ( { channel : logChannelName , text : tap . logs . join ( '\n' ) , show : false } )
54
+ addOutput ( { channel : logChannelName , text : tap . logs . join ( '\n' ) , show : false } )
55
55
56
56
if ( stderr ) {
57
57
// FAIL also trigger stderr
@@ -63,12 +63,12 @@ const createTestRunner = (config: TT.TutorialTestRunnerConfig, callbacks: Callba
63
63
}
64
64
callbacks . onFail ( position , failSummary )
65
65
const output = formatFailOutput ( tap )
66
- displayOutput ( { channel : failChannelName , text : output , show : true } )
66
+ addOutput ( { channel : failChannelName , text : output , show : true } )
67
67
return
68
68
} else {
69
69
callbacks . onError ( position )
70
70
// open terminal with error string
71
- displayOutput ( { channel : failChannelName , text : stderr , show : true } )
71
+ addOutput ( { channel : failChannelName , text : stderr , show : true } )
72
72
return
73
73
}
74
74
}
0 commit comments