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

Function resolve

test/lib/test-data-service/writer.ts:49–51  ·  view source on GitHub ↗
(value?: string)

Source from the content-addressed store, hash-verified

47 const response: TestDataResponse = {
48 _res: res,
49 resolve(value?: string) {
50 res.end(value === undefined ? key : value)
51 },
52 reject(error: Error, status?: number) {
53 res.statusCode = status ?? 500
54 res.end(error.message ?? `Failed to fetch data for "${key}"`)

Callers 15

runTestOnceFunction · 0.50
getStaticPropsFunction · 0.50
index.test.tsFile · 0.50
index.test.tsFile · 0.50
index.test.tsFile · 0.50
runAndCaptureOutputFunction · 0.50
serveSlowImageFunction · 0.50
index.test.tsFile · 0.50
index.test.tsFile · 0.50
index.test.tsFile · 0.50
initMiddlewareFunction · 0.50
no-parsing.jsFile · 0.50

Calls 1

endMethod · 0.65

Tested by 12

runAndCaptureOutputFunction · 0.40
runTestsFunction · 0.40
callbackFunction · 0.40
babelFunction · 0.40
callbackFunction · 0.40
babelFunction · 0.40
sendSmugglingPayloadFunction · 0.40
finishFunction · 0.40
primeFunction · 0.40
doneFunction · 0.40
onStdoutFunction · 0.40