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

Function fetchThatFails

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected