MCPcopy
hub / github.com/vercel/next.js / fetch

Function fetch

test/integration/empty-project/test/index.test.ts:16–17  ·  view source on GitHub ↗
(p, q?: any)

Source from the content-addressed store, hash-verified

14 })
15
16 const fetch = (p, q?: any) =>
17 fetchViaHTTP(context.appPort, p, q, { timeout: 10_000 })
18
19 it('Should not time out and return 404', async () => {
20 const res = await fetch('/')

Callers 15

index.test.tsFile · 0.70
PageFunction · 0.50
runTestsFunction · 0.50
runTestsFunction · 0.50
index.test.tsFile · 0.50
runTestsFunction · 0.50
runDevFunction · 0.50
getServerSidePropsFunction · 0.50
createGraphQLFetcherFunction · 0.50
index.test.tsFile · 0.50
getStaticPropsFunction · 0.50
getServerSidePropsFunction · 0.50

Calls 1

fetchViaHTTPFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…