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

Function reject

test/lib/test-data-service/writer.ts:52–55  ·  view source on GitHub ↗
(error: Error, status?: number)

Source from the content-addressed store, hash-verified

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}"`)
55 },
56 }
57
58 try {

Callers 15

runTestOnceFunction · 0.50
index.test.tsFile · 0.50
index.test.tsFile · 0.50
initMiddlewareFunction · 0.50
runTestsFunction · 0.50
index.test.tsFile · 0.50
actFunction · 0.50
handleFailureFunction · 0.50
waitForFunction · 0.50
handleStderrFunction · 0.50
initNextServerScriptFunction · 0.50

Calls 1

endMethod · 0.65

Tested by 9

runTestsFunction · 0.40
callbackFunction · 0.40
callbackFunction · 0.40
timeoutPromiseFunction · 0.40
waitForServerFunction · 0.40
onErrorFunction · 0.40
onExitFunction · 0.40
timeoutPromiseFunction · 0.40