import { restoreMockConfig } from '__mocks__/@config' ; declare const console ; declare const process ; const actualExit = process . exit ; const mockedExit = jest . fn ( ) ; const actualLog = console . log ; const mockedLog = jest . fn ( ) . mockImplementation ( ( ... args ) => { if ( args [ 0 ] === 'DEBUG' ) { actualLog ( ... args . slice ( 1 ) ) ; } } ) ; global . beforeAll ( ( ) => { process . exit = mockedExit ; console . log = mockedLog ; } ) ; global . afterAll ( ( ) => { process . exit = actualExit ; console . log = actualLog ; } ) ; global . beforeEach ( ( ) => { restoreMockConfig ( ) ; process . exit . mockClear ( ) ; console . log . mockClear ( ) ; } ) ; export { } ;