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

Function getPageFileFromPagesManifest

test/lib/next-test-utils.ts:1345–1353  ·  view source on GitHub ↗
(dir: string, page: string)

Source from the content-addressed store, hash-verified

1343}
1344
1345export function getPageFileFromPagesManifest(dir: string, page: string) {
1346 const pagesManifest = getPagesManifest(dir)
1347 const pageFile = pagesManifest[page]
1348 if (!pageFile) {
1349 throw new Error(`No file for page ${page}`)
1350 }
1351
1352 return pageFile
1353}
1354
1355export function readNextBuildServerPageFile(appDir: string, page: string) {
1356 const pageFile = getPageFileFromPagesManifest(appDir, page)

Callers 8

runTestsFunction · 0.90
runTestsFunction · 0.90
runTestsFunction · 0.90
runTestsFunction · 0.90
runTestsFunction · 0.90
runTestsFunction · 0.90
index.test.tsFile · 0.90

Calls 1

getPagesManifestFunction · 0.85

Tested by 6

runTestsFunction · 0.72
runTestsFunction · 0.72
runTestsFunction · 0.72
runTestsFunction · 0.72
runTestsFunction · 0.72
runTestsFunction · 0.72