Skip to content

Commit

Permalink
test trace file
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Dec 13, 2023
1 parent 87cb167 commit dc8a8f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/app-dir/metadata-dynamic-routes/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,13 +567,15 @@ createNextDescribe(
await Promise.all(promises)
})

it('should include default og font files in file trace', async () => {
it.only('should include default og font files in file trace', async () => {
const fileTrace = JSON.parse(
await next.readFile(
'.next/server/app/metadata-base/unset/opengraph-image2/[[...__metadata_id__]]/route.js.nft.json'
)
)

console.log(fileTrace)

// @vercel/og default font should be traced
const isTraced = fileTrace.files.some((filePath) =>
filePath.includes('/noto-sans-v27-latin-regular.ttf')
Expand Down

0 comments on commit dc8a8f8

Please sign in to comment.