mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #556] [MERGED] test: add production coverage for global-error compat #671
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#671
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/556
Author: @NathanDrake2406
Created: 3/16/2026
Status: ✅ Merged
Merged: 3/16/2026
Merged by: @james-elicx
Base:
main← Head:fix/app-router-error-boundary-200📝 Commits (3)
b84d25fAdd production coverage for global-error compatefefba9Address global-error review feedbacka49bd19docs: update tracker notes for tests #3 and #4 to reflect production preview coverage📊 Changes
2 files changed (+106 additions, -22 deletions)
View changed files
📝
tests/nextjs-compat/TRACKING.md(+21 -21)📝
tests/nextjs-compat/global-error.test.ts(+85 -1)📄 Description
Summary
This updates the App Router
global-errorcompat coverage to reflect current vinext behavior and adds production-preview assertions for the HTTP-level cases that were previously tracked as skipped.What Changed
tests/nextjs-compat/global-error.test.tsfor:error.tsxon server component errorserror.tsxerror.tsxforgenerateMetadata()errorsglobal-error.tsxfallback when metadata has no local boundarytests/nextjs-compat/TRACKING.mdto mark those cases as passing instead of skippedupstream/mainWhy It Matters
The tracker was claiming a meaningful Next.js compatibility bug around handled errors returning
500instead of200. The current implementation already matches Next.js for the server-side HTTP semantics here, so the right fix is to lock that behavior in with direct coverage and stop advertising a stale regression.Risks Or Limits
global-errorinteractions from the upstream Next.js suiteVerification
vp test tests/nextjs-compat/global-error.test.ts🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.