test: strengthen regression oracles and cleanup ownership (#8152)

* test: strengthen suite oracles and cleanup ownership

* test: reuse setup across independent scenarios (#8153)

* Potential fix for pull request finding 'CodeQL / Improper code sanitization'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
morlutoandCopilot Autofix powered by AI authored and GitHub committed 2026-10-31 00:22:16 +08:00
1 parent 1ddee1089b
commit 675d4076de
98 files changed
+1373 -1034

No files matched your search

@@ -2301,14 +2301,8 @@ describe("entities an unmodelled write made", () => {
["GET", "/api/books/3", BOOK_NOT_FOUND, 404] as TimedCaptureRow,
];
it("serves a delete of a book an unmodelled import made, which a later item read showed", () => {
// The rename ends the initial reads, so the third book is no initial one.
expect(
gated(deletedAfterRead([RENAME, IMPORT]), "delete_books_by_id"),
).toMatchObject({ served: true, checked_record_ordinals: [7] });
});
it("takes a book the state never held only when a write the gate does not model came first", () => {
// The rename ends the initial reads, so the third book is no initial one.
expect(
gated(deletedAfterRead([RENAME, IMPORT]), "delete_books_by_id"),
).toMatchObject({ served: true, checked_record_ordinals: [7] });