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

Function renderViaHTTP

test/lib/next-test-utils.ts:250–257  ·  view source on GitHub ↗
(
  appPort: string | number,
  pathname: string,
  query?: Record<string, any> | string | undefined,
  opts?: RequestInit
)

Source from the content-addressed store, hash-verified

248}
249
250export function renderViaHTTP(
251 appPort: string | number,
252 pathname: string,
253 query?: Record<string, any> | string | undefined,
254 opts?: RequestInit
255) {
256 return fetchViaHTTP(appPort, pathname, query, opts).then((res) => res.text())
257}
258
259export function findPort() {
260 // [NOTE] What are we doing here?

Callers 15

runTestsFunction · 0.90
navigateTestFunction · 0.90
runTestsFunction · 0.90
index.test.tsFile · 0.90
gsp-gssp.test.tsFile · 0.90
runTestsFunction · 0.90
get$Function · 0.90
index.test.tsFile · 0.90
index.test.tsFile · 0.90
runTestsFunction · 0.90
runTestsFunction · 0.90
runTestsFunction · 0.90

Calls 3

fetchViaHTTPFunction · 0.85
thenMethod · 0.80
textMethod · 0.65

Tested by 15

runTestsFunction · 0.72
navigateTestFunction · 0.72
runTestsFunction · 0.72
runTestsFunction · 0.72
get$Function · 0.72
runTestsFunction · 0.72
runTestsFunction · 0.72
runTestsFunction · 0.72
getEnvFromHtmlFunction · 0.72
runTestsFunction · 0.72
basicFunction · 0.72
getDataFunction · 0.72