feat(hk): connect delivery failures to precise diagnostic records

This commit is contained in:
2026-09-13 20:25:03 +02:00
parent 275a574203
commit 60e49c1ec9
17 changed files with 253 additions and 20 deletions
+3 -2
View File
@@ -31,8 +31,9 @@ it("persists failures and continues to other pending work", async () => {
complete: vi.fn(),
fail: vi.fn(),
};
await dispatchEffects(repo, vi.fn().mockRejectedValue(Error("private")));
expect(repo.fail).toHaveBeenCalledWith(effect);
const failure = Error("private");
await dispatchEffects(repo, vi.fn().mockRejectedValue(failure));
expect(repo.fail).toHaveBeenCalledWith(effect, failure);
expect(repo.complete).not.toHaveBeenCalled();
});
it("bounds work per tick instead of draining indefinitely", async () => {