Skip to content

Commit 166447f

Browse files
authored
test(e2e): Fix typing in error routes in Next.js e2e tests (#9062)
1 parent cd0bc3b commit 166447f

File tree

2 files changed

+2
-2
lines changed
  • packages/e2e-tests/test-applications/nextjs-app-dir/app/route-handlers/[param]

2 files changed

+2
-2
lines changed

packages/e2e-tests/test-applications/nextjs-app-dir/app/route-handlers/[param]/edge/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ export async function PATCH() {
66
return NextResponse.json({ name: 'John Doe' }, { status: 401 });
77
}
88

9-
export async function DELETE() {
9+
export async function DELETE(): Promise<Response> {
1010
throw new Error('route-handler-edge-error');
1111
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export async function PUT() {
1+
export async function PUT(): Promise<Response> {
22
throw new Error('route-handler-error');
33
}

0 commit comments

Comments
 (0)