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