File tree Expand file tree Collapse file tree 8 files changed +48
-8
lines changed
next-dev-tests/tests/integration/next/app/async-local-storage/input Expand file tree Collapse file tree 8 files changed +48
-8
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,9 @@ async function runOperation(renderData: RenderData) {
238238 body = result . toUnchunkedString ( ) ;
239239 }
240240 return {
241- headers : [ [ "Content-Type" , result . contentType ( ) ?? MIME_TEXT_HTML_UTF8 ] ] ,
241+ headers : [
242+ [ "Content-Type" , result . contentType ( ) ?? MIME_TEXT_HTML_UTF8 ] ,
243+ ] as [ string , string ] [ ] ,
242244 body,
243245 } ;
244246}
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ export { default as AppRouter } from "next/dist/client/components/app-router.js"
22export { default as LayoutRouter } from "next/dist/client/components/layout-router.js" ;
33export { default as RenderFromTemplateContext } from "next/dist/client/components/render-from-template-context.js" ;
44export { default as GlobalError } from "next/dist/client/components/error-boundary.js" ;
5- export { staticGenerationAsyncStorage } from "next/dist/esm/ client/components/static-generation-async-storage.js" ;
6- export { requestAsyncStorage } from "next/dist/esm/ client/components/request-async-storage.js" ;
7- import * as serverHooks from "next/dist/esm/ client/components/hooks-server-context.js" ;
5+ export { staticGenerationAsyncStorage } from "next/dist/client/components/static-generation-async-storage.js" ;
6+ export { requestAsyncStorage } from "next/dist/client/components/request-async-storage.js" ;
7+ import * as serverHooks from "next/dist/client/components/hooks-server-context.js" ;
88export { serverHooks } ;
99export { renderToReadableStream } from "next/dist/compiled/react-server-dom-webpack/server.browser" ;
1010
Original file line number Diff line number Diff line change 11declare const PAGE : string ;
22
3- import { adapter , enhanceGlobals } from "next/dist/esm/ server/web/adapter" ;
3+ import { adapter , enhanceGlobals } from "next/dist/server/web/adapter" ;
44
55enhanceGlobals ( ) ;
66
Original file line number Diff line number Diff line change 1- declare module "next/dist/esm/ client/components/static-generation-async-storage.js" ;
2- declare module "next/dist/esm/ client/components/request-async-storage.js" ;
3- declare module "next/dist/esm/ client/components/hooks-server-context.js" ;
1+ declare module "next/dist/client/components/static-generation-async-storage.js" ;
2+ declare module "next/dist/client/components/request-async-storage.js" ;
3+ declare module "next/dist/client/components/hooks-server-context.js" ;
44declare module "next/dist/compiled/react-server-dom-webpack/server.browser" ;
Original file line number Diff line number Diff line change 1+ import { cookies } from "next/headers" ;
2+
3+ export default function RootLayout ( { children } : { children : any } ) {
4+ return (
5+ < html >
6+ < body >
7+ { JSON . stringify ( cookies ( ) , null , 2 ) }
8+ { children }
9+ </ body >
10+ </ html >
11+ ) ;
12+ }
Original file line number Diff line number Diff line change 1+ import Test from "./test" ;
2+
3+ export default function Page ( ) {
4+ return (
5+ < div >
6+ < Test />
7+ </ div >
8+ ) ;
9+ }
Original file line number Diff line number Diff line change 1+ "use client" ;
2+
3+ import { useEffect } from "react" ;
4+
5+ export default function Test ( ) {
6+ useEffect ( ( ) => {
7+ import ( "@turbo/pack-test-harness" ) . then ( ( ) => {
8+ it ( "should run" , ( ) => { } ) ;
9+ } ) ;
10+ return ( ) => { } ;
11+ } , [ ] ) ;
12+ }
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ experimental : {
3+ appDir : true ,
4+ } ,
5+ } ;
You can’t perform that action at this time.
0 commit comments