silverwolf-x's picture
download
raw
766 Bytes
import { nextTestSetup } from 'e2e-utils'
describe('unexpected-error', () => {
const { next } = nextTestSetup({
files: __dirname,
})
it('should set response status to 500 for unexpected errors in ssr app route', async () => {
const res = await next.fetch('/ssr-unexpected-error?error=true')
expect(res.status).toBe(500)
})
it('cannot change response status when streaming has started', async () => {
const res = await next.fetch(
'/ssr-unexpected-error-after-streaming?error=true'
)
expect(res.status).toBe(200)
})
it('should set response status to 500 for unexpected errors in isr app route', async () => {
const res = await next.fetch('/isr-unexpected-error?error=true')
expect(res.status).toBe(500)
})
})

Xet Storage Details

Size:
766 Bytes
·
Xet hash:
3f2296e27eeb4d41ef55bfad5c3b33d5c74082ba63229717bf800a16a8f02678

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.