JJ Kasper 2024-01-16 09:24:40 -08:00 committed by GitHub
parent dc394483b8
commit f668ab580b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,7 @@ import {
launchApp,
nextBuild,
nextStart,
retry,
} from 'next-test-utils'
import {
appOption,
@ -89,16 +90,15 @@ describe('Edge runtime code with imports', () => {
context.appPort,
appOption
)
const res = await fetchViaHTTP(context.appPort, url)
expect(res.status).toBe(500)
await check(async () => {
await retry(async () => {
const res = await fetchViaHTTP(context.appPort, url)
expect(res.status).toBe(500)
expectUnsupportedModuleDevError(
moduleName,
importStatement,
await res.text()
)
return 'success'
}, 'success')
})
})
})
;(process.env.TURBOPACK ? describe.skip : describe)(