Skip to content

Commit

Permalink
fix(lib/testing): only stub requests on meta.json
Browse files Browse the repository at this point in the history
  • Loading branch information
hasundue committed Apr 23, 2024
1 parent 49683e6 commit f643434
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit f643434

Please sign in to comment.