Skip to main content

Interface: ActivityMockInfo

What a mock receives besides the activity's args.

Properties​

activityId​

activityId: string

a<n> for an activity, l<n> for a local activity.


attempt​

attempt: number


connection?​

optional connection?: string


heartbeat?​

optional heartbeat?: (details?) => void

Record heartbeat details for the next attempt (activities only).

Parameters​

details?​

unknown

Returns​

void


heartbeatDetails?​

optional heartbeatDetails?: Json

Details the previous attempt recorded with heartbeat (11 §2.4); activities only.


local?​

optional local?: boolean

True when the call is a local activity (ctx.localActivity).


nodeType​

nodeType: string


operation​

operation: string


runId​

runId: string