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
cd11aa0c
Commit
cd11aa0c
authored
Feb 18, 2026
by
Niklas Mischkulnig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update snapshots
parent
c23280be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
88 additions
and
12 deletions
+88
-12
error-recovery.test.ts
test/development/acceptance-app/error-recovery.test.ts
+68
-8
ReactRefreshLogBox-builtins.test.ts
...evelopment/acceptance/ReactRefreshLogBox-builtins.test.ts
+20
-4
No files found.
test/development/acceptance-app/error-recovery.test.ts
View file @
cd11aa0c
...
@@ -49,7 +49,17 @@ describe('Error recovery app', () => {
...
@@ -49,7 +49,17 @@ describe('Error recovery app', () => {
"source": "./index.js (1:27)
"source": "./index.js (1:27)
Parsing ecmascript source code failed
Parsing ecmascript source code failed
> 1 | export default () => <div/
> 1 | export default () => <div/
| ^",
| ^
Expected '>', got '<eof>'
Import traces:
Client Component Browser:
./index.js [Client Component Browser]
./app/page.js [Client Component Browser]
./app/page.js [Server Component]
Client Component SSR:
./index.js [Client Component SSR]
./app/page.js [Client Component SSR]
./app/page.js [Server Component]",
"stack": [],
"stack": [],
}
}
`
)
`
)
...
@@ -142,7 +152,8 @@ describe('Error recovery app', () => {
...
@@ -142,7 +152,8 @@ describe('Error recovery app', () => {
"source": "./app/server/page.js (2:28)
"source": "./app/server/page.js (2:28)
Parsing ecmascript source code failed
Parsing ecmascript source code failed
> 2 | return <p>Hello world</p>
> 2 | return <p>Hello world</p>
| ^",
| ^
Expected '}', got '<eof>'",
"stack": [],
"stack": [],
}
}
`
)
`
)
...
@@ -226,7 +237,15 @@ describe('Error recovery app', () => {
...
@@ -226,7 +237,15 @@ describe('Error recovery app', () => {
"source": "./app/client/page.js (2:28)
"source": "./app/client/page.js (2:28)
Parsing ecmascript source code failed
Parsing ecmascript source code failed
> 2 | return <p>Hello world</p>
> 2 | return <p>Hello world</p>
| ^",
| ^
Expected '}', got '<eof>'
Import traces:
Client Component Browser:
./app/client/page.js [Client Component Browser]
./app/client/page.js [Server Component]
Client Component SSR:
./app/client/page.js [Client Component SSR]
./app/client/page.js [Server Component]",
"stack": [],
"stack": [],
}
}
`
)
`
)
...
@@ -661,7 +680,17 @@ describe('Error recovery app', () => {
...
@@ -661,7 +680,17 @@ describe('Error recovery app', () => {
"source": "./index.js (10:42)
"source": "./index.js (10:42)
Parsing ecmascript source code failed
Parsing ecmascript source code failed
> 10 | export default function FunctionNamed() {
> 10 | export default function FunctionNamed() {
| ^",
| ^
Expected '}', got '<eof>'
Import traces:
Client Component Browser:
./index.js [Client Component Browser]
./app/page.js [Client Component Browser]
./app/page.js [Server Component]
Client Component SSR:
./index.js [Client Component SSR]
./app/page.js [Client Component SSR]
./app/page.js [Server Component]",
"stack": [],
"stack": [],
}
}
`
)
`
)
...
@@ -721,7 +750,17 @@ describe('Error recovery app', () => {
...
@@ -721,7 +750,17 @@ describe('Error recovery app', () => {
"source": "./index.js (10:42)
"source": "./index.js (10:42)
Parsing ecmascript source code failed
Parsing ecmascript source code failed
> 10 | export default function FunctionNamed() {
> 10 | export default function FunctionNamed() {
| ^",
| ^
Expected '}', got '<eof>'
Import traces:
Client Component Browser:
./index.js [Client Component Browser]
./app/page.js [Client Component Browser]
./app/page.js [Server Component]
Client Component SSR:
./index.js [Client Component SSR]
./app/page.js [Client Component SSR]
./app/page.js [Server Component]",
"stack": [],
"stack": [],
}
}
`
)
`
)
...
@@ -913,7 +952,17 @@ describe('Error recovery app', () => {
...
@@ -913,7 +952,17 @@ describe('Error recovery app', () => {
"source": "./index.js (5:5)
"source": "./index.js (5:5)
Parsing ecmascript source code failed
Parsing ecmascript source code failed
> 5 | return <h1>Default Export</h1>;
> 5 | return <h1>Default Export</h1>;
| ^^^^^^",
| ^^^^^^
Expected '{', got 'return'
Import traces:
Client Component Browser:
./index.js [Client Component Browser]
./app/page.js [Client Component Browser]
./app/page.js [Server Component]
Client Component SSR:
./index.js [Client Component SSR]
./app/page.js [Client Component SSR]
./app/page.js [Server Component]",
"stack": [],
"stack": [],
}
}
`
)
`
)
...
@@ -996,7 +1045,17 @@ describe('Error recovery app', () => {
...
@@ -996,7 +1045,17 @@ describe('Error recovery app', () => {
"source": "./index.js (5:5)
"source": "./index.js (5:5)
Parsing ecmascript source code failed
Parsing ecmascript source code failed
> 5 | throw new Error('nooo');
> 5 | throw new Error('nooo');
| ^^^^^",
| ^^^^^
Expected '{', got 'throw'
Import traces:
Client Component Browser:
./index.js [Client Component Browser]
./app/page.js [Client Component Browser]
./app/page.js [Server Component]
Client Component SSR:
./index.js [Client Component SSR]
./app/page.js [Client Component SSR]
./app/page.js [Server Component]",
"stack": [],
"stack": [],
}
}
`
)
`
)
...
@@ -1122,7 +1181,8 @@ describe('Error recovery app', () => {
...
@@ -1122,7 +1181,8 @@ describe('Error recovery app', () => {
"source": "./app/page.js (1:4)
"source": "./app/page.js (1:4)
Parsing ecmascript source code failed
Parsing ecmascript source code failed
> 1 | {{{
> 1 | {{{
| ^",
| ^
Expected '}', got '<eof>'",
"stack": [],
"stack": [],
}
}
`
)
`
)
...
...
test/development/acceptance/ReactRefreshLogBox-builtins.test.ts
View file @
cd11aa0c
...
@@ -53,7 +53,13 @@ describe('ReactRefreshLogBox', () => {
...
@@ -53,7 +53,13 @@ describe('ReactRefreshLogBox', () => {
"source": "./node_modules/my-package/index.js (1:13)
"source": "./node_modules/my-package/index.js (1:13)
Module not found: Can't resolve 'dns'
Module not found: Can't resolve 'dns'
> 1 | const dns = require('dns')
> 1 | const dns = require('dns')
| ^^^^^^^^^^^^^^",
| ^^^^^^^^^^^^^^
Import trace:
Browser:
./node_modules/my-package/index.js
./index.js
./pages/index.js
https://nextjs.org/docs/messages/module-not-found",
"stack": [],
"stack": [],
}
}
`
)
`
)
...
@@ -124,7 +130,15 @@ describe('ReactRefreshLogBox', () => {
...
@@ -124,7 +130,15 @@ describe('ReactRefreshLogBox', () => {
"source": "./index.js (1:1)
"source": "./index.js (1:1)
Module not found: Can't resolve 'b'
Module not found: Can't resolve 'b'
> 1 | import Comp from 'b'
> 1 | import Comp from 'b'
| ^^^^^^^^^^^^^^^^^^^^",
| ^^^^^^^^^^^^^^^^^^^^
Import traces:
Browser:
./index.js
./pages/index.js
SSR:
./index.js
./pages/index.js
https://nextjs.org/docs/messages/module-not-found",
"stack": [],
"stack": [],
}
}
`
)
`
)
...
@@ -196,7 +210,8 @@ describe('ReactRefreshLogBox', () => {
...
@@ -196,7 +210,8 @@ describe('ReactRefreshLogBox', () => {
"source": "./pages/index.js (1:1)
"source": "./pages/index.js (1:1)
Module not found: Can't resolve 'b'
Module not found: Can't resolve 'b'
> 1 | import Comp from 'b'
> 1 | import Comp from 'b'
| ^^^^^^^^^^^^^^^^^^^^",
| ^^^^^^^^^^^^^^^^^^^^
https://nextjs.org/docs/messages/module-not-found",
"stack": [],
"stack": [],
}
}
`
)
`
)
...
@@ -272,7 +287,8 @@ describe('ReactRefreshLogBox', () => {
...
@@ -272,7 +287,8 @@ describe('ReactRefreshLogBox', () => {
"source": "./pages/_app.js (1:1)
"source": "./pages/_app.js (1:1)
Module not found: Can't resolve './non-existent.css'
Module not found: Can't resolve './non-existent.css'
> 1 | import './non-existent.css'
> 1 | import './non-existent.css'
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
https://nextjs.org/docs/messages/module-not-found",
"stack": [],
"stack": [],
}
}
`
)
`
)
...
...
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