Skip to content

Commit

Permalink
stablize new test
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Jun 7, 2024
1 parent 2a0b48b commit b93ca56
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions test/development/acceptance-app/dynamic-metadata-error.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ describe('dynamic = "error" in devmode', () => {
'/metadata-base/unset/icon/100'
)

// const originalOutputIndex = next.cliOutput.length

// await next.patchFile(iconFilePath, contentMissingIdProperty)
// await next.fetch('/metadata-base/unset/icon/100')

await retry(async () => {
expect(next.cliOutput).toContain(
`id property is required for every item returned from generateImageMetadata`
Expand Down Expand Up @@ -78,24 +73,14 @@ describe('dynamic = "error" in devmode', () => {
const { cleanup } = await sandbox(
next,
new Map([[sitemapFilePath, contentMissingIdProperty]]),
'/metadata-base/unset/icon/100'
'/metadata-base/unset/sitemap/100.xml'
)

// const originalOutputIndex = next.cliOutput.length

await next.patchFile(sitemapFilePath, contentMissingIdProperty)
await next.fetch('/metadata-base/unset/sitemap/0')

await retry(async () => {
expect(next.cliOutput).toContain(
`id property is required for every item returned from generateSitemaps`
)
})
// try {
// } finally {
// await next.deleteFile(sitemapFilePath)
// await next.fetch('/metadata-base/unset/sitemap/0')
// }

await cleanup()
})
Expand Down

0 comments on commit b93ca56

Please sign in to comment.