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
3df2d82b
Commit
3df2d82b
authored
Feb 12, 2026
by
Luke Sandberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix remaining snapshot mismatches for ssr-in-rsc and cache-components-segment-configs
parent
6aa0ee81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
ssr-in-rsc.test.ts
test/development/app-dir/ssr-in-rsc/ssr-in-rsc.test.ts
+8
-2
cache-components-segment-configs.test.ts
...-segment-configs/cache-components-segment-configs.test.ts
+6
-3
No files found.
test/development/app-dir/ssr-in-rsc/ssr-in-rsc.test.ts
View file @
3df2d82b
...
...
@@ -279,8 +279,14 @@ describe('react-dom/server in React Server environment', () => {
}
else
{
expect
(
redbox
).
toMatchInlineSnapshot
(
`
{
"description": "Cannot read properties of null (reading 'useInsertionEffect')",
"source": null,
"description": "react-dom/server is not supported in React Server Components.",
"source": "app/exports/app-code/react-dom-server-node-explicit/page.js (1:1) @ module evaluation
> 1 | import * as ReactDOMServerNode from 'react-dom/server.node'
| ^
2 | // Fine to drop once React is on ESM
3 | import ReactDOMServerNodeDefault from 'react-dom/server.node'
4 |",
}
`
)
}
...
...
test/e2e/app-dir/cache-components-segment-configs/cache-components-segment-configs.test.ts
View file @
3df2d82b
...
...
@@ -97,14 +97,17 @@ describe('cache-components-segment-configs', () => {
expect
(
redbox
.
description
).
toMatchInlineSnapshot
(
`"Route segment config "revalidate" is not compatible with \`nextConfig.cacheComponents\`. Please remove it."`
)
expect
(
redbox
.
source
).
toContain
(
'"revalidate" is not compatible with `nextConfig.cacheComponents`. Please remove it.'
)
}
else
{
expect
(
redbox
.
description
).
toMatchInlineSnapshot
(
`" x Route segment config "runtime" is not compatible with \`nextConfig.cacheComponents\`. Please remove it."`
)
expect
(
redbox
.
source
).
toContain
(
'"runtime" is not compatible with `nextConfig.cacheComponents`. Please remove it.'
)
}
expect
(
redbox
.
source
).
toContain
(
'"revalidate" is not compatible with `nextConfig.cacheComponents`. Please remove it.'
)
}
else
{
await
retry
(
async
()
=>
{
expect
(
next
.
cliOutput
).
toContain
(
...
...
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