import consola from 'consola' ; export function mockConsola ( ) { const mock = { } ; consola . mockTypes ( ( type ) => { mock [ type ] = mock [ type ] || jest . fn ( ) ; return mock [ type ] ; } ) ; return mock ; }