MCPcopy
hub / github.com/vitest-dev/vitest / fetchSomething

Function fetchSomething

test/core/test/vi.spec.ts:103–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101 }
102
103 function fetchSomething(): Promise<Response> {
104 return fetch('https://vitest.dev/')
105 };
106 if (0) {
107 // type check only
108 vi.mocked(fetchSomething).mockResolvedValue(new Response(null))

Callers

nothing calls this directly

Calls 1

fetchFunction · 0.85

Tested by

no test coverage detected