export const mockPackage = { raw : { __dirname : '/tmp' } as any , } ; jest . doMock ( 'load-json-file' , ( ) => ( { sync : ( ) => mockPackage . raw , } ) ) ; export const mockDiscover = jest . fn ( ) ; jest . mock ( '../discovery/plugins_discovery' , ( ) => ( { discover : mockDiscover } ) ) ;