(
params: OfflineMutationFnParams,
)
| 218 | const leader = new FakeLeaderElection() |
| 219 | |
| 220 | const wrappedMutation = async ( |
| 221 | params: OfflineMutationFnParams, |
| 222 | ): Promise<any> => { |
| 223 | const currentAttempt = (attemptCounter.get(params.idempotencyKey) ?? 0) + 1 |
| 224 | attemptCounter.set(params.idempotencyKey, currentAttempt) |
| 225 | const extendedParams = { ...params, attempt: currentAttempt } |
| 226 | mutationCalls.push(extendedParams) |
| 227 | return mutationFn(extendedParams) |
| 228 | } |
| 229 | |
| 230 | const config: OfflineConfig = { |
| 231 | ...options.config, |
nothing calls this directly
no test coverage detected