MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / fetchThatFails

Function fetchThatFails

packages/core/api/src/update-check.test.ts:28–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected