mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### What app-dir `metadata.test.ts` is pretty big and includes a lot of erroring tests and navigation tests. Breaking them into smaller suites to avoid the erroring on effect on others. - metadata - metadata-navigation - metadata-thrown Moved the metadata testing utils into `next-test-utils` for sharing purpose. Moved the hmr test to the bottom to avoid flakyness.
25 lines
419 B
TypeScript
25 lines
419 B
TypeScript
process.on('unhandledRejection', (rej) => {
|
|
console.log('unhandledRejection', rej)
|
|
process.exit(1)
|
|
})
|
|
|
|
export const revalidate = 0
|
|
|
|
export default function Layout({ children }) {
|
|
return (
|
|
<>
|
|
<p>Layout</p>
|
|
{children}
|
|
</>
|
|
)
|
|
}
|
|
|
|
export async function generateMetadata() {
|
|
await new Promise((resolve) => {
|
|
setTimeout(() => {
|
|
process.nextTick(resolve)
|
|
}, 2_000)
|
|
})
|
|
return {}
|
|
}
|