@@ -66,25 +66,25 @@ describe('non-root-project-monorepo', () => {
66
66
if ( isTurbopack ) {
67
67
// TODO the function name should be hidden
68
68
expect ( await getRedboxSource ( browser ) ) . toMatchInlineSnapshot ( `
69
- "app/source-maps-rsc/page.tsx (9 :28) @ innerArrowFunction
70
-
71
- 7 | }
72
- 8 |
73
- > 9 | const innerArrowFunction = () => {
74
- | ^
75
- 10 | require('../separate-file')
76
- 11 | }
77
- 12 |"
69
+ "app/source-maps-rsc/page.tsx (13 :28) @ innerArrowFunction
70
+
71
+ 11 | }
72
+ 12 |
73
+ > 13 | const innerArrowFunction = () => {
74
+ | ^
75
+ 14 | require('../separate-file')
76
+ 15 | }
77
+ 16 |"
78
78
` )
79
79
// TODO stacktrace-parser breaks in some cases with the rsc:// protocol
80
80
expect ( normalizeStackTrace ( await getRedboxCallStack ( browser ) ) )
81
81
. toMatchInlineSnapshot ( `
82
- "<unknown>
83
- [project]/apps/web/app/separate-file.ts [app-rsc] (ecmascript) (rsc://React/Server/file://<full-path>/apps/web/.next/server/chunks/ssr/apps_web_8d1c0a._.js (7:7)
84
- innerFunction
85
- app/source-maps-rsc/page.tsx (6 :3)
86
- Page
87
- app/source-maps-rsc/page.tsx (2:3 )"
82
+ "<unknown>
83
+ [project]/apps/web/app/separate-file.ts [app-rsc] (ecmascript) (rsc://React/Server/file://<full-path>/apps/web/.next/server/chunks/ssr/apps_web_8d1c0a._.js (7:7)
84
+ innerFunction
85
+ app/source-maps-rsc/page.tsx (10 :3)
86
+ Page
87
+ app/source-maps-rsc/page.tsx (4:5 )"
88
88
` )
89
89
} else {
90
90
// TODO the function name is incorrect
@@ -98,16 +98,16 @@ describe('non-root-project-monorepo', () => {
98
98
// TODO webpack runtime code shouldn't be included in stack trace
99
99
expect ( normalizeStackTrace ( await getRedboxCallStack ( browser ) ) )
100
100
. toMatchInlineSnapshot ( `
101
- "<unknown>
102
- rsc)/./app/separate-file.ts (rsc://React/Server/file://<full-path>/apps/web/.next/server/app/source-maps-rsc/page.js
103
- __webpack_require__
104
- file://<full-path>/apps/web/.next/server/webpack-runtime.js
105
- require
106
- app/source-maps-rsc/page.tsx (10 :3)
107
- innerArrowFunction
108
- app/source-maps-rsc/page.tsx (6 :3)
109
- innerFunction
110
- app/source-maps-rsc/page.tsx (2:3 )"
101
+ "<unknown>
102
+ rsc)/./app/separate-file.ts (rsc://React/Server/file://<full-path>/apps/web/.next/server/app/source-maps-rsc/page.js
103
+ __webpack_require__
104
+ file://<full-path>/apps/web/.next/server/webpack-runtime.js
105
+ require
106
+ app/source-maps-rsc/page.tsx (14 :3)
107
+ innerArrowFunction
108
+ app/source-maps-rsc/page.tsx (10 :3)
109
+ innerFunction
110
+ app/source-maps-rsc/page.tsx (4:5 )"
111
111
` )
112
112
}
113
113
await browser . close ( )
@@ -128,12 +128,12 @@ describe('non-root-project-monorepo', () => {
128
128
` )
129
129
expect ( normalizeStackTrace ( await getRedboxCallStack ( browser ) ) )
130
130
. toMatchInlineSnapshot ( `
131
- "innerArrowFunction
132
- app/source-maps-ssr/page.tsx (11 :28)
133
- innerFunction
134
- app/source-maps-ssr/page.tsx (8 :3)
135
- Page
136
- app/source-maps-ssr/page.tsx (4:3 )"
131
+ "innerArrowFunction
132
+ app/source-maps-ssr/page.tsx (15 :28)
133
+ innerFunction
134
+ app/source-maps-ssr/page.tsx (12 :3)
135
+ Page
136
+ app/source-maps-ssr/page.tsx (6:5 )"
137
137
` )
138
138
} else {
139
139
// TODO the function name should be hidden
@@ -147,20 +147,20 @@ describe('non-root-project-monorepo', () => {
147
147
// TODO webpack runtime code shouldn't be included in stack trace
148
148
expect ( normalizeStackTrace ( await getRedboxCallStack ( browser ) ) )
149
149
. toMatchInlineSnapshot ( `
150
- "./app/separate-file.ts
151
- file://<full-path>/apps/web/.next/static/chunks/app/source-maps-ssr/page.js (27:1)
152
- options.factory
153
- file://<full-path>/apps/web/.next/static/chunks/webpack.js (700:31)
154
- __webpack_require__
155
- file://<full-path>/apps/web/.next/static/chunks/webpack.js (37:33)
156
- fn
157
- file://<full-path>/apps/web/.next/static/chunks/webpack.js (357:21)
158
- require
159
- app/source-maps-ssr/page.tsx (12 :3)
160
- innerArrowFunction
161
- app/source-maps-ssr/page.tsx (8 :3)
162
- innerFunction
163
- app/source-maps-ssr/page.tsx (4:3 )"
150
+ "./app/separate-file.ts
151
+ file://<full-path>/apps/web/.next/static/chunks/app/source-maps-ssr/page.js (27:1)
152
+ options.factory
153
+ file://<full-path>/apps/web/.next/static/chunks/webpack.js (700:31)
154
+ __webpack_require__
155
+ file://<full-path>/apps/web/.next/static/chunks/webpack.js (37:33)
156
+ fn
157
+ file://<full-path>/apps/web/.next/static/chunks/webpack.js (357:21)
158
+ require
159
+ app/source-maps-ssr/page.tsx (16 :3)
160
+ innerArrowFunction
161
+ app/source-maps-ssr/page.tsx (12 :3)
162
+ innerFunction
163
+ app/source-maps-ssr/page.tsx (6:5 )"
164
164
` )
165
165
}
166
166
await browser . close ( )
0 commit comments