From 5457c425a083acdc14e4c6c2d5f8eb7aa0950ddc Mon Sep 17 00:00:00 2001 From: Matthew Blode Date: Sat, 15 Aug 2026 07:49:05 +1000 Subject: [PATCH] test: type the docs proxy fetch mock --- .changeset/social-cycles-push.md | 2 ++ apps/web/lib/docs-proxy.test.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .changeset/social-cycles-push.md diff --git a/.changeset/social-cycles-push.md b/.changeset/social-cycles-push.md new file mode 100644 index 0000000..a845151 --- /dev/null +++ b/.changeset/social-cycles-push.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/apps/web/lib/docs-proxy.test.ts b/apps/web/lib/docs-proxy.test.ts index ddab4f8..910b9a2 100644 --- a/apps/web/lib/docs-proxy.test.ts +++ b/apps/web/lib/docs-proxy.test.ts @@ -78,7 +78,7 @@ test("asset URLs round-trip through a routable public segment", () => { }); test("forwards Next router headers so the origin returns a flight, not HTML", async () => { - const fetchSpy = vi.fn(() => + const fetchSpy = vi.fn(() => Promise.resolve( new Response("1:", { headers: { "content-type": "text/x-component" },