/**
 * NOTE: These variable names MUST start with 'mock*' in order for
 * Jest to accept its use within a jest.mock()
 */ export const mockHistory = { createHref : jest . fn ( ( { pathname } ) => `/app/enterprise_search${ pathname }` ) , push : jest . fn ( ) , location : { pathname : '/current-path' , } , listen : jest . fn ( ( ) => jest . fn ( ) ) , } as any ; export const mockLocation = { key : 'someKey' , pathname : '/current-path' , search : '?query=something' , hash : '#hash' , state : { } , } ;