import { Hub } from "@sentry/types/dist/hub" ; export default ( { data , opts } ) => { const defaultOpts = { attempts : 3 , removeOnFail : true , removeOnComplete : true } ; return { data , opts : Object . assign ( defaultOpts , opts || { } ) , sentry : { setUser : jest . fn ( ) } as Hub } ; } ;