Commit 90a0358
committed
test(cron): tighten transcript-mock typings for upstream NormalizedOutboundPayload contract
Upstream change tightened NormalizedOutboundPayload to require mediaUrls and
narrowed the implicit `vi.fn()` mock-call tuple to the empty argument list.
Add explicit AppendFn / ExactFn signatures to the hoisted transcript mocks so
`mock.calls[0]?.[0]` resolves to the param shape used by the test assertions,
and supply mediaUrls: [] for the synthetic best-effort onError payload.1 parent cf8f034 commit 90a0358
1 file changed
Lines changed: 19 additions & 5 deletions
Lines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
31 | 45 | | |
32 | 46 | | |
33 | 47 | | |
| |||
417 | 431 | | |
418 | 432 | | |
419 | 433 | | |
420 | | - | |
| 434 | + | |
421 | 435 | | |
422 | 436 | | |
423 | 437 | | |
| |||
0 commit comments