Files
next.js/test/e2e/og-routes-custom-font/og-routes-custom-font.test.ts
Jiachi LiuandGitHub 4bf5f18f4d test: add app route og image with custom font case (#68798)
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)
2024-08-12 22:02:50 +02:00

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)
})
})