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
69ccb0b6
Unverified
Commit
69ccb0b6
authored
Oct 29, 2025
by
Sebastian "Sebbie" Silbermann
Committed by
GitHub
Oct 29, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[test] Handle CLI assertions where no "Compiling..." log is present (#85499)
parent
ad6907a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
server-source-maps-edge.test.ts
...pp-dir/server-source-maps/server-source-maps-edge.test.ts
+3
-3
server-source-maps.test.ts
...e2e/app-dir/server-source-maps/server-source-maps.test.ts
+9
-9
No files found.
test/e2e/app-dir/server-source-maps/server-source-maps-edge.test.ts
View file @
69ccb0b6
...
...
@@ -28,7 +28,7 @@ describe('app-dir - server source maps edge runtime', () => {
)
})
expect
(
normalizeCliOutput
(
next
.
cliOutput
.
slice
(
outputIndex
))).
toContain
(
'
\
n
Error: rsc-error-log'
+
'Error: rsc-error-log'
+
'
\
n at logError (app/rsc-error-log/page.js:2:17)'
+
'
\
n at Page (app/rsc-error-log/page.js:6:3)'
+
'
\
n 1 | function logError() {'
+
...
...
@@ -57,7 +57,7 @@ describe('app-dir - server source maps edge runtime', () => {
const
cliOutput
=
stripAnsi
(
next
.
cliOutput
.
slice
(
outputIndex
))
expect
(
cliOutput
).
toContain
(
'
\
n
⨯ Error: ssr-throw'
+
' ⨯ Error: ssr-throw'
+
'
\
n at throwError (app/ssr-throw/page.js:4:9)'
+
'
\
n at Page (app/ssr-throw/page.js:8:3)'
+
'
\
n 2 |'
+
...
...
@@ -87,7 +87,7 @@ describe('app-dir - server source maps edge runtime', () => {
const
cliOutput
=
stripAnsi
(
next
.
cliOutput
.
slice
(
outputIndex
))
expect
(
cliOutput
).
toContain
(
'
\
n
⨯ Error: rsc-throw'
+
' ⨯ Error: rsc-throw'
+
'
\
n at throwError (app/rsc-throw/page.js:2:9)'
+
'
\
n at Page (app/rsc-throw/page.js:6:3)'
+
'
\
n 1 | function throwError() {'
+
...
...
test/e2e/app-dir/server-source-maps/server-source-maps.test.ts
View file @
69ccb0b6
...
...
@@ -41,7 +41,7 @@ describe('app-dir - server source maps', () => {
)
})
expect
(
normalizeCliOutput
(
next
.
cliOutput
.
slice
(
outputIndex
))).
toContain
(
'
\
n
Error: rsc-error-log'
+
'Error: rsc-error-log'
+
'
\
n at logError (app/rsc-error-log/page.js:4:17)'
+
'
\
n at Page (app/rsc-error-log/page.js:9:3)'
+
'
\
n 2 |'
+
...
...
@@ -82,7 +82,7 @@ describe('app-dir - server source maps', () => {
)
})
expect
(
normalizeCliOutput
(
next
.
cliOutput
.
slice
(
outputIndex
))).
toContain
(
'
\
n
Error: rsc-error-log-cause'
+
'Error: rsc-error-log-cause'
+
'
\
n at logError (app/rsc-error-log-cause/page.js:2:17)'
+
'
\
n at Page (app/rsc-error-log-cause/page.js:8:3)'
+
'
\
n 1 | function logError(cause) {'
+
...
...
@@ -140,7 +140,7 @@ describe('app-dir - server source maps', () => {
})
expect
(
normalizeCliOutput
(
next
.
cliOutput
.
slice
(
outputIndex
))).
toContain
(
isTurbopack
?
'
\
n
Error: ssr-error-log-ignore-listed'
+
?
'Error: ssr-error-log-ignore-listed'
+
'
\
n at logError (app/ssr-error-log-ignore-listed/page.js:9:17)'
+
'
\
n at runWithInternalIgnored (app/ssr-error-log-ignore-listed/page.js:19:13)'
+
'
\
n at runWithExternalSourceMapped (app/ssr-error-log-ignore-listed/page.js:18:29)'
+
...
...
@@ -154,7 +154,7 @@ describe('app-dir - server source maps', () => {
'
\
n at Page (app/ssr-error-log-ignore-listed/page.js:14:14)'
+
'
\
n 7 |'
+
'
\
n'
:
'
\
n
Error: ssr-error-log-ignore-listed'
+
:
'Error: ssr-error-log-ignore-listed'
+
'
\
n at logError (app/ssr-error-log-ignore-listed/page.js:9:17)'
+
'
\
n at runWithInternalIgnored (app/ssr-error-log-ignore-listed/page.js:19:13)'
+
// TODO(veil-NDX-910): Webpacks's sourcemap loader drops `ignoreList`
...
...
@@ -256,7 +256,7 @@ describe('app-dir - server source maps', () => {
})
expect
(
normalizeCliOutput
(
next
.
cliOutput
.
slice
(
outputIndex
))).
toContain
(
isTurbopack
?
'
\
n
Error: rsc-error-log-ignore-listed'
+
?
'Error: rsc-error-log-ignore-listed'
+
'
\
n at logError (app/rsc-error-log-ignore-listed/page.js:8:17)'
+
'
\
n at runWithInternalIgnored (app/rsc-error-log-ignore-listed/page.js:18:13)'
+
'
\
n at runWithExternalSourceMapped (app/rsc-error-log-ignore-listed/page.js:17:29)'
+
...
...
@@ -270,7 +270,7 @@ describe('app-dir - server source maps', () => {
'
\
n at Page (app/rsc-error-log-ignore-listed/page.js:13:14)'
+
'
\
n 6 |'
+
'
\
n'
:
'
\
n
Error: rsc-error-log-ignore-listed'
+
:
'Error: rsc-error-log-ignore-listed'
+
'
\
n at logError (app/rsc-error-log-ignore-listed/page.js:8:17)'
+
'
\
n at runWithInternalIgnored (app/rsc-error-log-ignore-listed/page.js:18:13)'
+
// TODO(veil): Webpacks's sourcemap loader drops `ignoreList`
...
...
@@ -393,7 +393,7 @@ describe('app-dir - server source maps', () => {
expect
(
normalizeCliOutput
(
next
.
cliOutput
.
slice
(
outputIndex
))).
toContain
(
// Node.js is fine with invalid URLs in index maps apparently.
''
+
'
\
n
Error: bad-sourcemap'
+
'Error: bad-sourcemap'
+
'
\
n at logError (app/bad-sourcemap/custom:/[badhost]/app/bad-sourcemap/page.js:6:17)'
+
'
\
n at Page (app/bad-sourcemap/custom:/[badhost]/app/bad-sourcemap/page.js:10:3)'
+
'
\
n'
...
...
@@ -673,7 +673,7 @@ describe('app-dir - server source maps', () => {
expect
(
normalizeCliOutput
(
next
.
cliOutput
.
slice
(
outputIndex
))).
toContain
(
''
+
'
\
n
Error: rsc-anonymous-stack-frame-sandwich: external'
+
'Error: rsc-anonymous-stack-frame-sandwich: external'
+
'
\
n at Page (app/rsc-anonymous-stack-frame-sandwich/page.js:5:29)'
+
'
\
n 3 |'
+
'
\
n 4 | export default function Page() {'
+
...
...
@@ -763,7 +763,7 @@ describe('app-dir - server source maps', () => {
expect
(
normalizeCliOutput
(
next
.
cliOutput
.
slice
(
outputIndex
))).
toContain
(
''
+
'
\
n
Error: ssr-anonymous-stack-frame-sandwich: external'
+
'Error: ssr-anonymous-stack-frame-sandwich: external'
+
'
\
n at Page (app/ssr-anonymous-stack-frame-sandwich/page.js:6:29)'
+
'
\
n 4 |'
+
'
\
n 5 | export default function Page() {'
+
...
...
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