Skip to content

Commit 0e1c3b0

Browse files
committed
Update cache-components-errors.test.ts
1 parent 102d711 commit 0e1c3b0

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

test/e2e/app-dir/cache-components-errors/cache-components-errors.test.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2698,6 +2698,7 @@ describe('Cache Components Errors', () => {
26982698
"stack": [
26992699
"{module evaluation} app/use-cache-private-in-unstable-cache/page.tsx (21:38)",
27002700
"<FIXME-next-dist-dir>",
2701+
"<FIXME-next-dist-dir>",
27012702
],
27022703
}
27032704
`)
@@ -2753,7 +2754,6 @@ describe('Cache Components Errors', () => {
27532754
"Error: "use cache: private" must not be used within \`unstable_cache()\`.
27542755
at __TURBOPACK__module__evaluation__ (bundler:///app/use-cache-private-in-unstable-cache/page.tsx:21:38)
27552756
at a (<next-dist-dir>)
2756-
at b (<next-dist-dir>)
27572757
19 | }
27582758
20 |
27592759
> 21 | const getCachedData = unstable_cache(async () => {
@@ -2771,8 +2771,6 @@ describe('Cache Components Errors', () => {
27712771
expect(output).toMatchInlineSnapshot(`
27722772
"Error: "use cache: private" must not be used within \`unstable_cache()\`.
27732773
at __TURBOPACK__module__evaluation__ (bundler:///app/use-cache-private-in-unstable-cache/page.tsx:21:38)
2774-
at a (<next-dist-dir>)
2775-
at b (<next-dist-dir>)
27762774
19 | }
27772775
20 |
27782776
> 21 | const getCachedData = unstable_cache(async () => {
@@ -2898,7 +2896,6 @@ describe('Cache Components Errors', () => {
28982896
"Error: "use cache: private" must not be used within "use cache". It can only be nested inside of another "use cache: private".
28992897
at __TURBOPACK__module__evaluation__ (bundler:///app/use-cache-private-in-use-cache/page.tsx:15:1)
29002898
at a (<next-dist-dir>)
2901-
at b (<next-dist-dir>)
29022899
13 | }
29032900
14 |
29042901
> 15 | async function Private() {
@@ -2908,8 +2905,7 @@ describe('Cache Components Errors', () => {
29082905
18 | return <p>Private</p>
29092906
Error: "use cache: private" must not be used within "use cache". It can only be nested inside of another "use cache: private".
29102907
at __TURBOPACK__module__evaluation__ (bundler:///app/use-cache-private-in-use-cache/page.tsx:15:1)
2911-
at c (<next-dist-dir>)
2912-
at d (<next-dist-dir>)
2908+
at b (<next-dist-dir>)
29132909
13 | }
29142910
14 |
29152911
> 15 | async function Private() {
@@ -2927,8 +2923,6 @@ describe('Cache Components Errors', () => {
29272923
expect(output).toMatchInlineSnapshot(`
29282924
"Error: "use cache: private" must not be used within "use cache". It can only be nested inside of another "use cache: private".
29292925
at __TURBOPACK__module__evaluation__ (bundler:///app/use-cache-private-in-use-cache/page.tsx:15:1)
2930-
at a (<next-dist-dir>)
2931-
at b (<next-dist-dir>)
29322926
13 | }
29332927
14 |
29342928
> 15 | async function Private() {
@@ -2938,8 +2932,6 @@ describe('Cache Components Errors', () => {
29382932
18 | return <p>Private</p>
29392933
Error: "use cache: private" must not be used within "use cache". It can only be nested inside of another "use cache: private".
29402934
at __TURBOPACK__module__evaluation__ (bundler:///app/use-cache-private-in-use-cache/page.tsx:15:1)
2941-
at c (<next-dist-dir>)
2942-
at d (<next-dist-dir>)
29432935
13 | }
29442936
14 |
29452937
> 15 | async function Private() {

0 commit comments

Comments
 (0)