Files
Jiachi LiuandGitHub 54f54423d8 test: break down metadata test suite into smaller ones (#67018)
### 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.
2024-06-19 14:46:21 +02:00

18 lines
371 B
TypeScript

import type { ResolvingMetadata } from 'next'
import { notFound } from 'next/navigation'
process.on('unhandledRejection', (rej) => {
console.log('unhandledRejection', rej)
process.exit(1)
})
export const revalidate = 0
export default function Page() {
return notFound()
}
export async function generateMetadata(_, __: ResolvingMetadata) {
return notFound()
}