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
5ff21003
Unverified
Commit
5ff21003
authored
Dec 19, 2024
by
Sebastian "Sebbie" Silbermann
Committed by
GitHub
Dec 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix merge conflicts (#74157)
parent
6402e142
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
38 deletions
+38
-38
non-root-project-monorepo.test.ts
...n-root-project-monorepo/non-root-project-monorepo.test.ts
+38
-38
No files found.
test/e2e/app-dir/non-root-project-monorepo/non-root-project-monorepo.test.ts
View file @
5ff21003
...
...
@@ -89,11 +89,11 @@ describe('non-root-project-monorepo', () => {
}
else
{
// TODO the function name is incorrect
expect
(
await
getRedboxSource
(
browser
)).
toMatchInlineSnapshot
(
`
"app/separate-file.ts (1:11) @ Error
"app/separate-file.ts (1:11) @ eval
> 1 | throw new Error('Expected error')
| ^
2 |"
> 1 | throw new Error('Expected error')
| ^
2 |"
`
)
// TODO webpack runtime code shouldn't be included in stack trace
expect
(
normalizeStackTrace
(
await
getRedboxCallStack
(
browser
)))
...
...
@@ -102,11 +102,11 @@ describe('non-root-project-monorepo', () => {
rsc)/./app/separate-file.ts (rsc://React/Server/file://<full-path>/apps/web/.next/server/app/source-maps-rsc/page.js
__webpack_require__
file://<full-path>/apps/web/.next/server/webpack-runtime.js
require
app/source-maps-rsc/page.tsx (14:3)
innerArrowFunction
app/source-maps-rsc/page.tsx (1
0
:3)
app/source-maps-rsc/page.tsx (1
4
:3)
innerFunction
app/source-maps-rsc/page.tsx (10:3)
Page
app/source-maps-rsc/page.tsx (4:5)"
`
)
}
...
...
@@ -120,11 +120,11 @@ describe('non-root-project-monorepo', () => {
if
(
isTurbopack
)
{
// TODO the function name should be hidden
expect
(
await
getRedboxSource
(
browser
)).
toMatchInlineSnapshot
(
`
"app/separate-file.ts (1:7) @ [project]/apps/web/app/separate-file.ts [app-client] (ecmascript)
"app/separate-file.ts (1:7) @ [project]/apps/web/app/separate-file.ts [app-client] (ecmascript)
> 1 | throw new Error('Expected error')
| ^
2 |"
> 1 | throw new Error('Expected error')
| ^
2 |"
`
)
expect
(
normalizeStackTrace
(
await
getRedboxCallStack
(
browser
)))
.
toMatchInlineSnapshot
(
`
...
...
@@ -155,11 +155,11 @@ describe('non-root-project-monorepo', () => {
file://<full-path>/apps/web/.next/static/chunks/webpack.js (37:33)
fn
file://<full-path>/apps/web/.next/static/chunks/webpack.js (357:21)
require
app/source-maps-ssr/page.tsx (16:3)
innerArrowFunction
app/source-maps-ssr/page.tsx (1
2
:3)
app/source-maps-ssr/page.tsx (1
6
:3)
innerFunction
app/source-maps-ssr/page.tsx (12:3)
Page
app/source-maps-ssr/page.tsx (6:5)"
`
)
}
...
...
@@ -173,20 +173,20 @@ describe('non-root-project-monorepo', () => {
if
(
isTurbopack
)
{
// TODO the function name should be hidden
expect
(
await
getRedboxSource
(
browser
)).
toMatchInlineSnapshot
(
`
"app/separate-file.ts (1:7) @ [project]/apps/web/app/separate-file.ts [app-client] (ecmascript)
"app/separate-file.ts (1:7) @ [project]/apps/web/app/separate-file.ts [app-client] (ecmascript)
> 1 | throw new Error('Expected error')
| ^
2 |"
> 1 | throw new Error('Expected error')
| ^
2 |"
`
)
expect
(
normalizeStackTrace
(
await
getRedboxCallStack
(
browser
)))
.
toMatchInlineSnapshot
(
`
"innerArrowFunction
app/source-maps-client/page.tsx (16:28)
innerFunction
app/source-maps-client/page.tsx (13:3)
effectCallback
app/source-maps-client/page.tsx (7:5)"
"innerArrowFunction
app/source-maps-client/page.tsx (16:28)
innerFunction
app/source-maps-client/page.tsx (13:3)
effectCallback
app/source-maps-client/page.tsx (7:5)"
`
)
}
else
{
// TODO the function name should be hidden
...
...
@@ -200,20 +200,20 @@ describe('non-root-project-monorepo', () => {
// TODO webpack runtime code shouldn't be included in stack trace
expect
(
normalizeStackTrace
(
await
getRedboxCallStack
(
browser
)))
.
toMatchInlineSnapshot
(
`
"./app/separate-file.ts
file://<full-path>/apps/web/.next/static/chunks/app/source-maps-client/page.js (27:1)
options.factory
file://<full-path>/apps/web/.next/static/chunks/webpack.js (712:31)
__webpack_require__
file://<full-path>/apps/web/.next/static/chunks/webpack.js (37:33)
fn
file://<full-path>/apps/web/.next/static/chunks/webpack.js (369:21)
require
app/source-maps-client/page.tsx (17:3)
innerArrow
Function
app/source-maps-client/page.tsx (13:3)
innerFunction
app/source-maps-client/page.tsx (7:5)"
"./app/separate-file.ts
file://<full-path>/apps/web/.next/static/chunks/app/source-maps-client/page.js (27:1)
options.factory
file://<full-path>/apps/web/.next/static/chunks/webpack.js (712:31)
__webpack_require__
file://<full-path>/apps/web/.next/static/chunks/webpack.js (37:33)
fn
file://<full-path>/apps/web/.next/static/chunks/webpack.js (369:21)
innerArrowFunction
app/source-maps-client/page.tsx (17:3)
inner
Function
app/source-maps-client/page.tsx (13:3)
effectCallback
app/source-maps-client/page.tsx (7:5)"
`
)
}
await
browser
.
close
()
...
...
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