mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #162] [CLOSED] feat: add nuqs e2e test suite integration #363
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#363
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/162
Author: @southpolesteve
Created: 2/27/2026
Status: ❌ Closed
Base:
main← Head:feat/nuqs-e2e-tests📝 Commits (10+)
a51ec8cMerge pull request #23 from southpolesteve/app-router-prod-servercf18ba8test: add E2E tests for router.events, next/dynamic ssr:false, Link advanced props, beforePopState162ef9dfix: add scroll={false} assertion — intercept scrollTo to verify no scroll-to-topae1e122Merge pull request #29 from southpolesteve/e2e-router-dynamic-link8bb09bftest: add E2E tests for Pages Router production buildc97a9f0Merge pull request #28 from southpolesteve/e2e-prod-tests81f84batest: add Cloudflare Workers E2E testsc2edf4cMerge pull request #30 from southpolesteve/cloudflare-e2ee22a065feat: add middleware support to Pages Router production server9ddb1f8Merge pull request #25 from southpolesteve/prod-server-middleware📊 Changes
3 files changed (+17 additions, -74 deletions)
View changed files
📝
.github/workflows/nuqs-e2e.yml(+1 -27)📝
packages/vinext/src/index.ts(+9 -2)📝
scripts/nuqs-e2e.sh(+7 -45)📄 Description
Summary
What it does
nuqs e2e test integration:
scripts/nuqs-e2e.sh: Clones the nuqs repo, patches its Next.js e2e test app to use vinext (createsvite.config.ts, replacesplaywright.config.ts), installs vinext dependencies, and runs their Playwright tests.github/workflows/nuqs-e2e.yml: CI workflow that runs the nuqs e2e suite on push to main, PRs, and daily. Usescontinue-on-error: truesince not all tests pass yetpackage.json: Addstest:nuqs-e2escriptDual-router fix (
packages/vinext/src/index.ts):When both
app/andpages/directories exist, the Pages Router dev middleware now falls through tonext()(letting the RSC plugin handle the request) when:Previously, these cases returned 404 directly, blocking the App Router from serving its routes.
Test results
All existing vinext tests pass (414 shim, 213 feature, 159 app-router, 86 pages-router tests). The dual-router fix was verified by running the nuqs e2e app with both
src/app/andsrc/pages/directories present, confirming both routers serve their respective pages correctly.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.