()
| 186 | |
| 187 | // Run retryWithBackoff multiple times to observe jitter |
| 188 | const runRetry = () => |
| 189 | retryWithBackoff(mockFn, { |
| 190 | maxAttempts: 2, // Only one retry, so one delay |
| 191 | initialDelayMs: 100, |
| 192 | maxDelayMs: 1000, |
| 193 | }); |
| 194 | |
| 195 | // We expect rejections as mockFn fails 5 times |
| 196 | const promise1 = runRetry(); |
no test coverage detected