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
f5f5be6b
Unverified
Commit
f5f5be6b
authored
Mar 04, 2025
by
Sebastian "Sebbie" Silbermann
Committed by
GitHub
Mar 04, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[test] Add special placeholder if stackframes point into dist dir (#76741)
parent
f6092227
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
ReactRefreshLogBox.test.ts
test/development/acceptance-app/ReactRefreshLogBox.test.ts
+2
-2
add-redbox-matchers.ts
test/lib/add-redbox-matchers.ts
+2
-0
next-test-utils.ts
test/lib/next-test-utils.ts
+2
-0
No files found.
test/development/acceptance-app/ReactRefreshLogBox.test.ts
View file @
f5f5be6b
...
@@ -1467,10 +1467,10 @@ describe('ReactRefreshLogBox app', () => {
...
@@ -1467,10 +1467,10 @@ describe('ReactRefreshLogBox app', () => {
| ^",
| ^",
"stack": [
"stack": [
"eval index.js (1:7)",
"eval index.js (1:7)",
"<
unknown> rsc)/./index.js (<FIXME-project-root>/.next/server/app/server/page.js (43:1)
",
"<
FIXME-next-dist-dir>
",
"<FIXME-file-protocol>",
"<FIXME-file-protocol>",
"eval ./app/server/page.js",
"eval ./app/server/page.js",
"<
unknown> rsc)/./app/server/page.js (<FIXME-project-root>/.next/server/app/server/page.js (33:1)
",
"<
FIXME-next-dist-dir>
",
"<FIXME-file-protocol>",
"<FIXME-file-protocol>",
],
],
}
}
...
...
test/lib/add-redbox-matchers.ts
View file @
f5f5be6b
...
@@ -31,6 +31,7 @@ declare global {
...
@@ -31,6 +31,7 @@ declare global {
* `<FIXME-internal-frame>` in the snapshot would be unintended.
* `<FIXME-internal-frame>` in the snapshot would be unintended.
* `<FIXME-project-root>` in the snapshot would be unintended.
* `<FIXME-project-root>` in the snapshot would be unintended.
* `<FIXME-file-protocol>` in the snapshot would be unintended.
* `<FIXME-file-protocol>` in the snapshot would be unintended.
* `<FIXME-next-dist-dir>` in the snapshot would be unintended.
* Any node_modules in the snapshot would be unintended.
* Any node_modules in the snapshot would be unintended.
* Differences in the snapshot between Turbopack and Webpack would be unintended.
* Differences in the snapshot between Turbopack and Webpack would be unintended.
*
*
...
@@ -50,6 +51,7 @@ declare global {
...
@@ -50,6 +51,7 @@ declare global {
* `<FIXME-internal-frame>` in the snapshot would be unintended.
* `<FIXME-internal-frame>` in the snapshot would be unintended.
* `<FIXME-project-root>` in the snapshot would be unintended.
* `<FIXME-project-root>` in the snapshot would be unintended.
* `<FIXME-file-protocol>` in the snapshot would be unintended.
* `<FIXME-file-protocol>` in the snapshot would be unintended.
* `<FIXME-next-dist-dir>` in the snapshot would be unintended.
* Any node_modules in the snapshot would be unintended.
* Any node_modules in the snapshot would be unintended.
* Differences in the snapshot between Turbopack and Webpack would be unintended.
* Differences in the snapshot between Turbopack and Webpack would be unintended.
*
*
...
...
test/lib/next-test-utils.ts
View file @
f5f5be6b
...
@@ -1456,6 +1456,8 @@ export async function getRedboxCallStack(
...
@@ -1456,6 +1456,8 @@ export async function getRedboxCallStack(
foundInternalFrame
=
true
foundInternalFrame
=
true
}
else
if
(
frame
.
includes
(
'file://'
))
{
}
else
if
(
frame
.
includes
(
'file://'
))
{
stack
.
push
(
'<FIXME-file-protocol>'
)
stack
.
push
(
'<FIXME-file-protocol>'
)
}
else
if
(
frame
.
includes
(
'.next/'
))
{
stack
.
push
(
'<FIXME-next-dist-dir>'
)
}
else
{
}
else
{
stack
.
push
(
frame
)
stack
.
push
(
frame
)
}
}
...
...
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