mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[GH-ISSUE #204] Systematic audit of Next.js test suite (file-by-file) #51
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#51
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?
Originally created by @southpolesteve on GitHub (Feb 28, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/204
Problem
Our Next.js compatibility test tracking (
tests/nextjs-compat/TRACKING.md) was built using a feature-first methodology: identify features vinext implements, then find relevant Next.js tests. This missed edge cases and error handling tests that don't map neatly to a "feature."Example:
test/e2e/app-dir/proxy-missing-export/tests that Next.js throws an error when a proxy/middleware file doesn't export the expected function. Our middleware implementation silently failed open instead, letting requests through unprotected. This was never caught because middleware was already "covered" by other tests (ON-6, ON-11), and the gap analysis never opened this specific test directory.The root cause is that TRACKING.md was built by asking "what features do we have, and do we have tests?" instead of "what does Next.js test, and do we match?"
Fixed in #203, but we need a systematic audit to find other gaps like this.
Proposal
Do a file-by-file walk through every test directory in the Next.js repo's test suite. For each directory:
Directories to audit
test/e2e/app-dir/(365+ directories, partially covered by TRACKING.md)test/e2e/top-level (middleware, pages router, config, etc.)test/unit/(pure function tests for routing, matching, etc.)Methodology
For each directory, record in a tracking document:
Priority ordering
Focus first on:
proxy-missing-export) since these are the ones most likely to be missed by feature-first analysis and most dangerous when missingContext
tests/nextjs-compat/TRACKING.md@southpolesteve commented on GitHub (Feb 28, 2026):
This is a job for ralph wiggum
@Divkix commented on GitHub (Mar 11, 2026):
Related to #454. While this issue audits test coverage, #454 is building a machine-readable API manifest to track which exports vinext implements. Both aim to find gaps but from different angles - this from tests, that from the API surface. Not blocking.