this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: Sync e2e with AWS (#943)

authored by

Magnus and committed by
GitHub
7a9ef5fb f73ac0f6

+19
+9
examples/e2e/app-router/app/api/auth/[...better-auth]/route.ts
··· 1 + import { NextResponse } from "next/server"; 2 + 3 + export async function GET(_req: Request, { params }: { params: Promise<{ "better-auth": string[] }> }) { 4 + const { "better-auth": slugs } = await params; 5 + 6 + return NextResponse.json({ 7 + slugs, 8 + }); 9 + }
+10
examples/e2e/app-router/e2e/dynamic.catch-all.hypen.test.ts
··· 1 + import { expect, test } from "@playwright/test"; 2 + 3 + // https://github.com/opennextjs/opennextjs-cloudflare/issues/942 4 + test("Dynamic catch-all API route with hyphen param", async ({ request }) => { 5 + const res = await request.get("/api/auth/opennext/is/really/cool"); 6 + expect(res.status()).toBe(200); 7 + expect(res.headers()["content-type"]).toBe("application/json"); 8 + const json = await res.json(); 9 + expect(json).toStrictEqual({ slugs: ["opennext", "is", "really", "cool"] }); 10 + });