Skip to content

Dynamic routing tests structure#89605

Draft
eps1lon wants to merge 2 commits intocanaryfrom
cursor/dynamic-routing-tests-structure-61f9
Draft

Dynamic routing tests structure#89605
eps1lon wants to merge 2 commits intocanaryfrom
cursor/dynamic-routing-tests-structure-61f9

Conversation

@eps1lon
Copy link
Member

@eps1lon eps1lon commented Feb 6, 2026

No description provided.

- Merged index.test.ts and middleware.test.ts into a single test file
- Used describe.each([{ withMiddleware: false }, { withMiddleware: true }]) to run tests with and without middleware
- Replaced process.env.__MIDDLEWARE_TEST checks with withMiddleware parameter
- This eliminates test duplication in CI and makes the test suite structure clearer

Co-authored-by: Sebastian "Sebbie" Silbermann <silbermann.sebastian@gmail.com>
@cursor
Copy link

cursor bot commented Feb 6, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@nextjs-bot nextjs-bot added created-by: Next.js team PRs by the Next.js team. tests labels Feb 6, 2026
@nextjs-bot
Copy link
Collaborator

Allow CI Workflow Run

  • approve CI run for commit: 8ee1061

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

created-by: Next.js team PRs by the Next.js team. tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants