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