Skip to content

Commit 9748fcf

Browse files
authored
fix (#765)
1 parent 972287e commit 9748fcf

File tree

2 files changed

+1
-4
lines changed
  • examples/pages-router/src/pages/api/dynamic/precedence
  • packages/tests-e2e/tests/pagesRouter

2 files changed

+1
-4
lines changed

packages/tests-e2e/tests/pagesRouter/api.test.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ test("should work with optional catch all api route", async ({ page }) => {
3737
expect(body).toEqual({ optional: "true" });
3838
});
3939

40-
// This should work but it doesn't. It seems that the predefined api route is not taking precedence.
41-
// Its broken in `next start` aswell.
42-
// Issue currently open in Next: https://github.com/vercel/next.js/issues/76765
43-
test.skip("predefined api route should take presedence", async ({ page }) => {
40+
test("predefined api route should take presedence", async ({ page }) => {
4441
const result = await page.goto("/api/dynamic/precedence");
4542
expect(result?.status()).toBe(200);
4643
const body = await result?.json();

0 commit comments

Comments
 (0)