Unverified Commit c2541e2f authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

Fix flight loader parsing (#30345)

parent 4c83292a
......@@ -122,7 +122,7 @@ async function parseExportNamesInto(
}
continue
default:
return
break
}
}
}
......
export default function foo() {
return 'foo.client'
}
import Foo from '../components/foo.client'
export default function Index() {
return 'thisistheindexpage'
return (
<div>
<h1>{`thisistheindexpage.server`}</h1>
<Foo />
</div>
)
}
......@@ -98,7 +98,8 @@ async function runTests(context) {
it('should render the correct html', async () => {
const homeHTML = await renderViaHTTP(context.appPort, '/')
const linkHTML = await renderViaHTTP(context.appPort, '/next-api/link')
expect(homeHTML).toContain('thisistheindexpage')
expect(homeHTML).toContain('thisistheindexpage.server')
expect(homeHTML).toContain('foo.client')
expect(linkHTML).toContain('go home')
})
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment