Skip to content

Commit 8c1012d

Browse files
committed
Update snapshots
1 parent 268f347 commit 8c1012d

File tree

3 files changed

+52
-33
lines changed

3 files changed

+52
-33
lines changed

test/e2e/app-dir/dynamic-io-errors/dynamic-io-errors.sync-attribution.test.ts

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ describe.each([
8181
"stack": [
8282
"SyncIO app/client.tsx (5:16)",
8383
"JSON.parse <anonymous> (0:0)",
84+
"JSON.parse <anonymous> (0:0)",
8485
"LogSafely <anonymous> (0:0)",
8586
],
8687
}
@@ -181,16 +182,19 @@ describe.each([
181182
"description": "Route "/": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. We don't have the exact line number added to error messages yet but you can see which component in the stack below. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense",
182183
"environmentLabel": "Server",
183184
"label": "Console Error",
184-
"source": null,
185+
"source": "app/page.tsx (27:9) @ Page
186+
> 27 | <RequestData />
187+
| ^",
185188
"stack": [
186-
"RequestData [Server] <anonymous> (2:1)",
187-
"section <anonymous> (2:1)",
188-
"main <anonymous> (2:1)",
189-
"Page [Server] <anonymous> (2:1)",
190-
"main <anonymous> (2:1)",
191-
"body <anonymous> (2:1)",
192-
"html <anonymous> (2:1)",
193-
"Root [Server] <anonymous> (2:1)",
189+
"RequestData [Server] <anonymous> (1:29)",
190+
"section <anonymous> (1:16)",
191+
"main <anonymous> (1:13)",
192+
"Page app/page.tsx (27:9)",
193+
"main <anonymous> (1:13)",
194+
"body <anonymous> (1:13)",
195+
"html <anonymous> (1:13)",
196+
"Root [Server] <anonymous> (1:22)",
197+
"JSON.parse <anonymous> (0:0)",
194198
"JSON.parse <anonymous> (0:0)",
195199
"LogSafely <anonymous> (0:0)",
196200
],
@@ -341,6 +345,7 @@ describe.each([
341345
"stack": [
342346
"SyncIO app/client.tsx (5:16)",
343347
"JSON.parse <anonymous> (0:0)",
348+
"JSON.parse <anonymous> (0:0)",
344349
"LogSafely <anonymous> (0:0)",
345350
],
346351
}

test/e2e/app-dir/dynamic-io-errors/dynamic-io-errors.sync-dynamic.test.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,11 @@ describe.each([
9797
"LongRunningComponent app/page.tsx (52:8)",
9898
"IndirectionTwo app/indirection.tsx (7:34)",
9999
"Page app/page.tsx (19:61)",
100-
"main <anonymous> (2:1)",
101-
"body <anonymous> (2:1)",
102-
"html <anonymous> (2:1)",
103-
"Root [Server] <anonymous> (2:1)",
100+
"main <anonymous> (1:13)",
101+
"body <anonymous> (1:13)",
102+
"html <anonymous> (1:13)",
103+
"Root [Server] <anonymous> (1:22)",
104+
"JSON.parse <anonymous> (0:0)",
104105
"JSON.parse <anonymous> (0:0)",
105106
"LogSafely <anonymous> (0:0)",
106107
],
@@ -278,6 +279,7 @@ describe.each([
278279
"stack": [
279280
"SearchParamsReadingComponent app/page.tsx (42:5)",
280281
"JSON.parse <anonymous> (0:0)",
282+
"JSON.parse <anonymous> (0:0)",
281283
"Page app/page.tsx (19:11)",
282284
],
283285
}
@@ -332,6 +334,7 @@ describe.each([
332334
"stack": [
333335
"SearchParamsReadingComponent app/page.tsx (40:5)",
334336
"JSON.parse <anonymous> (0:0)",
337+
"JSON.parse <anonymous> (0:0)",
335338
"Page app/page.tsx (19:11)",
336339
],
337340
},
@@ -345,6 +348,7 @@ describe.each([
345348
"stack": [
346349
"SearchParamsReadingComponent app/page.tsx (40:5)",
347350
"JSON.parse <anonymous> (0:0)",
351+
"JSON.parse <anonymous> (0:0)",
348352
"LogSafely <anonymous> (0:0)",
349353
],
350354
},
@@ -456,6 +460,7 @@ describe.each([
456460
"stack": [
457461
"CookiesReadingComponent app/page.tsx (34:67)",
458462
"JSON.parse <anonymous> (0:0)",
463+
"JSON.parse <anonymous> (0:0)",
459464
"Page app/page.tsx (17:11)",
460465
],
461466
}
@@ -510,6 +515,7 @@ describe.each([
510515
"stack": [
511516
"CookiesReadingComponent app/page.tsx (32:67)",
512517
"JSON.parse <anonymous> (0:0)",
518+
"JSON.parse <anonymous> (0:0)",
513519
"Page app/page.tsx (17:11)",
514520
],
515521
},
@@ -523,6 +529,7 @@ describe.each([
523529
"stack": [
524530
"CookiesReadingComponent app/page.tsx (32:67)",
525531
"JSON.parse <anonymous> (0:0)",
532+
"JSON.parse <anonymous> (0:0)",
526533
"LogSafely <anonymous> (0:0)",
527534
],
528535
},

test/e2e/app-dir/dynamic-io-errors/dynamic-io-errors.test.ts

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,17 @@ describe.each([
123123
"description": "Route "/": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. We don't have the exact line number added to error messages yet but you can see which component in the stack below. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense",
124124
"environmentLabel": "Server",
125125
"label": "Console Error",
126-
"source": null,
126+
"source": "app/page.tsx (15:7) @ Page
127+
> 15 | <Dynamic />
128+
| ^",
127129
"stack": [
128-
"Dynamic [Server] <anonymous> (2:1)",
129-
"Page [Server] <anonymous> (2:1)",
130-
"main <anonymous> (2:1)",
131-
"body <anonymous> (2:1)",
132-
"html <anonymous> (2:1)",
133-
"Root [Server] <anonymous> (2:1)",
130+
"Dynamic [Server] <anonymous> (1:25)",
131+
"Page app/page.tsx (15:7)",
132+
"main <anonymous> (1:13)",
133+
"body <anonymous> (1:13)",
134+
"html <anonymous> (1:13)",
135+
"Root [Server] <anonymous> (1:22)",
136+
"JSON.parse <anonymous> (0:0)",
134137
"JSON.parse <anonymous> (0:0)",
135138
"LogSafely <anonymous> (0:0)",
136139
],
@@ -588,13 +591,14 @@ describe.each([
588591
> 7 | export function IndirectionTwo({ children }) {
589592
| ^",
590593
"stack": [
591-
"FetchingComponent [Server] <anonymous> (2:1)",
594+
"FetchingComponent [Server] <anonymous> (1:35)",
592595
"IndirectionTwo app/indirection.tsx (7:34)",
593-
"Page [Server] <anonymous> (2:1)",
594-
"main <anonymous> (2:1)",
595-
"body <anonymous> (2:1)",
596-
"html <anonymous> (2:1)",
597-
"Root [Server] <anonymous> (2:1)",
596+
"Page app/page.tsx (16:9)",
597+
"main <anonymous> (1:13)",
598+
"body <anonymous> (1:13)",
599+
"html <anonymous> (1:13)",
600+
"Root [Server] <anonymous> (1:22)",
601+
"JSON.parse <anonymous> (0:0)",
598602
"JSON.parse <anonymous> (0:0)",
599603
"LogSafely <anonymous> (0:0)",
600604
],
@@ -603,14 +607,17 @@ describe.each([
603607
"description": "Route "/": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. We don't have the exact line number added to error messages yet but you can see which component in the stack below. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense",
604608
"environmentLabel": "Server",
605609
"label": "Console Error",
606-
"source": null,
610+
"source": "app/page.tsx (16:9) @ Page
611+
> 16 | <FetchingComponent nonce="a" cached={true} />
612+
| ^",
607613
"stack": [
608-
"FetchingComponent [Server] <anonymous> (2:1)",
609-
"Page [Server] <anonymous> (2:1)",
610-
"main <anonymous> (2:1)",
611-
"body <anonymous> (2:1)",
612-
"html <anonymous> (2:1)",
613-
"Root [Server] <anonymous> (2:1)",
614+
"FetchingComponent [Server] <anonymous> (1:35)",
615+
"Page app/page.tsx (16:9)",
616+
"main <anonymous> (1:13)",
617+
"body <anonymous> (1:13)",
618+
"html <anonymous> (1:13)",
619+
"Root [Server] <anonymous> (1:22)",
620+
"JSON.parse <anonymous> (0:0)",
614621
"JSON.parse <anonymous> (0:0)",
615622
"LogSafely <anonymous> (0:0)",
616623
],

0 commit comments

Comments
 (0)