Fix failing og api e2e test (#47500)
x-ref: https://github.com/vercel/next.js/actions/runs/4508438652/jobs/7937409460
This commit is contained in:
parent
68abad58ed
commit
ba9b94d5fb
1 changed files with 3 additions and 1 deletions
|
@ -53,7 +53,9 @@ describe('og-api', () => {
|
|||
)
|
||||
).toBe(true)
|
||||
})
|
||||
} else {
|
||||
}
|
||||
|
||||
if ((global as any).isNextDev) {
|
||||
it('should throw error when returning a response object in pages/api in node runtime', async () => {
|
||||
const res = await fetchViaHTTP(next.url, '/api/og-wrong-runtime')
|
||||
expect(res.status).toBe(500)
|
||||
|
|
Loading…
Reference in a new issue