()
| 29 | // A fetch impl whose body is not valid JSON, exercising resolveDistTags' |
| 30 | // best-effort catch: any registry misbehaviour collapses to {}. |
| 31 | const fetchThatFails = (): typeof fetch => |
| 32 | (async () => new Response("<not json>", { status: 200 })) as typeof fetch; |
| 33 | |
| 34 | describe("compareVersions", () => { |
| 35 | it("orders by major, minor, patch", () => { |