mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 07:00:22 +00:00
Fix typing lease background failure tests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user