import { EngineDetails } from '../components/engine/types' ; export const mockSourceEngines = [ { name : 'source-engine-1' } , { name : 'source-engine-2' } , ] as EngineDetails [ ] ; export const mockRecursivelyFetchEngines = jest . fn ( ( { onComplete } ) => onComplete ( mockSourceEngines ) ) ; jest . mock ( '../utils/recursively_fetch_engines' , ( ) => ( { recursivelyFetchEngines : mockRecursivelyFetchEngines , } ) ) ;