File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export class HookPatcher {
1515 this . _beforeHooks . has ( fn ) ? undefined : ( this . _beforeHooks . add ( fn ) , fn ( ...args ) ) ;
1616
1717 wrapper . toString = ( ) =>
18- this . _beforeHooks . has ( fn ) ? '() => /* patched beforeAll */' : fn . toString ( ) ;
18+ this . _beforeHooks . has ( fn ) ? '() => { /* patched beforeAll */ } ' : fn . toString ( ) ;
1919
2020 beforeEach ( wrapper , timeout ) ;
2121 } ;
@@ -28,15 +28,15 @@ export class HookPatcher {
2828 this . _testFailed ? ( this . _afterHooks . add ( fn ) , fn ( ...args ) ) : undefined ;
2929
3030 wrapperEach . toString = ( ) =>
31- this . _testFailed ? fn . toString ( ) : '() => /* patched afterAll */' ;
31+ this . _testFailed ? fn . toString ( ) : '() => { /* patched afterAll */ } ' ;
3232
3333 const wrapperAll =
3434 fn . length === 1
3535 ? ( done : Function ) => ( this . _afterHooks . has ( fn ) ? done ( ) : fn ( done ) )
3636 : ( ...args : unknown [ ] ) => ( this . _afterHooks . has ( fn ) ? undefined : fn ( ...args ) ) ;
3737
3838 wrapperAll . toString = ( ) =>
39- this . _afterHooks . has ( fn ) ? '() => /* patched afterAll */' : fn . toString ( ) ;
39+ this . _afterHooks . has ( fn ) ? '() => { /* patched afterAll */ } ' : fn . toString ( ) ;
4040
4141 afterEach ( wrapperEach , timeout ) ;
4242 afterAll ( wrapperAll , timeout ) ;
You can’t perform that action at this time.
0 commit comments