Skip to content

Commit 0d044d4

Browse files
committed
Debug app-custom-routes
1 parent 60f3952 commit 0d044d4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎test/e2e/app-dir/app-routes/app-custom-routes.test.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,12 @@ describe('app-custom-routes', () => {
622622

623623
const url = 'http://localhost:3000/dynamic'
624624

625+
if (res.status !== 200) {
626+
throw new Error(
627+
`Unexpected status ${res.status}, headers: ${JSON.stringify(Object.fromEntries(res.headers.entries()))}, body: ${(await res.text()).slice(0, 500)}`
628+
)
629+
}
630+
625631
expect(res.status).toEqual(200)
626632
expect(await res.json()).toEqual({
627633
nextUrl: {

0 commit comments

Comments
 (0)