mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +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.
13 lines
342 B
TypeScript
13 lines
342 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
|
|
describe('app dir - metadata thrown', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
})
|
|
|
|
it('should not crash from error thrown during preloading nested generateMetadata', async () => {
|
|
const res = await next.fetch('/dynamic-meta')
|
|
expect(res.status).toBe(404)
|
|
})
|
|
})
|