feat(hk): connect delivery failures to precise diagnostic records
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user