chore(lint): enforce buffer and cancellation regression guards

This commit is contained in:
morluto committed 2026-10-25 07:31:42 +08:00
1 parent f2fa951c00
commit 475f09d5ca
182 files changed
+1653 -497

No files matched your search

@@ -26,7 +26,9 @@ it("retains all bytes across short reads through the declared size", async () =>
expectedSize: BigInt(bytes.length),
});
if (result.status === "failed") throw result.entry;
expect(Buffer.concat(result.chunks, result.total)).toEqual(bytes);
expect(
Buffer.compare(Buffer.concat(result.chunks, result.total), bytes),
).toBe(0);
});
it("reports growth instead of continuing to consume a changed file", async () => {