const mock = jest . requireActual ( '../index_patterns_utils' ) ; jest . spyOn ( mock , 'fetchIndexPattern' ) ; export const { isStringTypeIndexPattern , getIndexPatternKey , extractIndexPatternValues , fetchIndexPattern , } = mock ;