Fix typing lease background failure tests

This commit is contained in:
Tak Hoffman
2026-03-27 23:57:06 -05:00
parent 7d7883aa38
commit a790f63056

View File

@@ -10,6 +10,7 @@ export function createPulseWithBackgroundFailure<
const pulse = vi.fn(
async (..._args: never[]) => undefined as Awaited<ReturnType<TPulse>>,
) as ReturnType<typeof vi.fn<TPulse>>;
pulse.mockResolvedValueOnce(undefined as Awaited<ReturnType<TPulse>>);
pulse.mockRejectedValueOnce(new Error("boom"));
return pulse;
}