File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ class Helper {
178
178
get helpers ( ) {
179
179
// @ts -ignore
180
180
const { container } = global . codeceptjs || require ( 'codeceptjs' ) ;
181
- return container . helpers ( ) ;
181
+ return container . default ? container . default . helpers ( ) : container . helpers ( ) ;
182
182
}
183
183
184
184
/**
@@ -189,7 +189,7 @@ class Helper {
189
189
debug ( msg : string ) {
190
190
// @ts -ignore
191
191
const { output } = global . codeceptjs || require ( 'codeceptjs' ) ;
192
- output . debug ( msg ) ;
192
+ output . output ? output . output . debug ( msg ) : output . debug ( msg ) ;
193
193
}
194
194
195
195
/**
@@ -199,8 +199,8 @@ class Helper {
199
199
debugSection ( section : any , msg : string ) {
200
200
// @ts -ignore
201
201
const { output } = global . codeceptjs || require ( 'codeceptjs' ) ;
202
- output . debug ( `[${ section } ] ${ msg } ` ) ;
202
+ output . output ? output . output . debug ( `[ ${ section } ] ${ msg } ` ) : output . debug ( `[${ section } ] ${ msg } ` ) ;
203
203
}
204
204
}
205
205
206
- export = Helper ;
206
+ export = Helper ;
You can’t perform that action at this time.
0 commit comments