import { RetryHandler } from '../../src/' ; import { Transport , Options , Payload , Event } from '@amplitude/types' ; export const MOCK_RETRY_TIMEOUTS = [ 100 , 100 , 100 ] ; export class TestRetry extends RetryHandler { public retryCount : Map < string , Map < string , number > > = new Map < string , Map < string , number > > ( ) ; public constructor ( transport , options ? ) { super ( 'NOT_A_REAL_API_KEY' , { retryTimeouts : MOCK_RETRY_TIMEOUTS , transportClass : transport , ... options , } ) ; } public getOptions ( ) { return { ... this . _options } ; } public getPayload ( events ) { return this . _getPayload ( events ) ; } }