mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Add test for Node.js and Edge runtime for og image rendering with custom font, they should not error. This is the manual setup approach for [metadata route with custom routes](https://github.com/vercel/next.js/blob/canary/test/e2e/app-dir/metadata-dynamic-routes/app/font/opengraph-image.tsx)
16 lines
391 B
TypeScript
16 lines
391 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
|
|
describe('og-routes-custom-font', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
})
|
|
|
|
it('should render og with custom font for app routes', async () => {
|
|
const res1 = await next.fetch('/app/og')
|
|
const res2 = await next.fetch('/app/og-node')
|
|
|
|
expect(res1.status).toBe(200)
|
|
expect(res2.status).toBe(200)
|
|
})
|
|
})
|