Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
80495b17
Unverified
Commit
80495b17
authored
May 22, 2026
by
Josh Story
Committed by
Hendrik Liebau
May 22, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
c237b933
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
0 deletions
+47
-0
cache-components-errors.http-access-fallback-prerender.test.ts
...-components-errors.http-access-fallback-prerender.test.ts
+36
-0
not-found.tsx
...rerender/app/not-found-above-boundary/child/not-found.tsx
+3
-0
page.tsx
...ack-prerender/app/not-found-above-boundary/child/page.tsx
+3
-0
layout.tsx
...allback-prerender/app/not-found-above-boundary/layout.tsx
+5
-0
No files found.
test/e2e/app-dir/cache-components-errors/cache-components-errors.http-access-fallback-prerender.test.ts
View file @
80495b17
...
...
@@ -72,6 +72,33 @@ describe('Cache Components HTTP Access Fallback Prerender', () => {
await
next
.
build
({
args
})
}
const
buildPath
=
async
(
pathname
:
string
)
=>
{
const
args
=
[
'--debug-build-paths'
,
`app
${
pathname
}
/page.tsx`
]
if
(
isDebugPrerender
)
{
args
.
push
(
'--debug-prerender'
)
}
await
next
.
build
({
args
})
}
const
expectStaticRouteArtifacts
=
async
(
route
:
string
)
=>
{
const
meta
=
JSON
.
parse
(
await
next
.
readFile
(
`.next/server/app/
${
route
}
.meta`
)
)
expect
(
await
next
.
readFile
(
`.next/server/app/
${
route
}
.html`
)).
toEqual
(
expect
.
any
(
String
)
)
expect
(
meta
.
status
).
toBe
(
404
)
expect
(
meta
.
segmentPaths
).
toContain
(
'/_tree'
)
expect
(
await
next
.
readFile
(
`.next/server/app/
${
route
}
.segments/_tree.segment.rsc`
)
).
toEqual
(
expect
.
any
(
String
))
}
describe
(
'notFound()'
,
()
=>
{
const
pagePath
=
'/not-found/[slug]'
const
visitUrl
=
'/not-found/not-found'
...
...
@@ -380,5 +407,14 @@ describe('Cache Components HTTP Access Fallback Prerender', () => {
})
}
})
describe
(
'notFound() above the matching not-found boundary'
,
()
=>
{
if
(
!
isNextDev
)
{
it
(
'should emit static artifacts'
,
async
()
=>
{
await
buildPath
(
'/not-found-above-boundary/child'
)
await
expectStaticRouteArtifacts
(
'not-found-above-boundary/child'
)
})
}
})
})
})
test/e2e/app-dir/cache-components-errors/fixtures/http-access-fallback-prerender/app/not-found-above-boundary/child/not-found.tsx
0 → 100644
View file @
80495b17
export
default
function
NotFound
()
{
return
<
p
>
child not found
</
p
>
}
test/e2e/app-dir/cache-components-errors/fixtures/http-access-fallback-prerender/app/not-found-above-boundary/child/page.tsx
0 → 100644
View file @
80495b17
export
default
function
Page
()
{
return
<
p
>
child page
</
p
>
}
test/e2e/app-dir/cache-components-errors/fixtures/http-access-fallback-prerender/app/not-found-above-boundary/layout.tsx
0 → 100644
View file @
80495b17
import
{
notFound
}
from
'next/navigation'
export
default
function
Layout
()
{
notFound
()
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment