Fix failing tests, update page component handler to exclude 404 pages on retries

This commit is contained in:
2026-10-03 03:32:01 +01:00
parent 6e6cfef5e5
commit 7bab610b38
8 changed files with 59 additions and 55 deletions
@@ -41,6 +41,7 @@ describe("grabPageComponent", () => {
req: new Request("http://localhost:3000/unknown-foo-bar123"),
});
console.log("DEBUG-404:", res instanceof Response ? "Response" : JSON.stringify(res));
expect(res.serverRes?.response_options?.status).toBe(404);
expect(log.error).not.toHaveBeenCalled();
});