From f64343423f3f47a2c160befd6edfda26ec9d67ac Mon Sep 17 00:00:00 2001 From: hasundue Date: Tue, 23 Apr 2024 12:11:10 +0900 Subject: [PATCH] fix(lib/testing): only stub requests on meta.json --- lib/testing.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/testing.ts b/lib/testing.ts index 23655ddf..da33afb3 100644 --- a/lib/testing.ts +++ b/lib/testing.ts @@ -138,6 +138,9 @@ export const LatestVersionStub = { { status: 200 }, ); case "jsr.io": + if (!url.pathname.endsWith("meta.json")) { + return init.original(request, init); + } return new Response( JSON.stringify({ versions: {