Repository navigation
test(tanstack-router): add React parity harness - #513
jonkwheeler wants to merge 15 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
a7db241 to
760bd8e
Compare
Follow the hook-form pattern: tag parity lanes with testExecution group react-parity, move differential tests into a dedicated project with globalSetup precompile, and drop per-file beforeAll compile hooks.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Reviewed by Cursor Bugbot for commit b0a72db. Configure here.
…eact-parity-harness
Regenerate lockfile hashes and Vitest evidence for tanstack-router.
…arness' into jon/tanstack-router-react-parity-harness
|
READY FOR REVIEW |
|
REVIEW WITHDRAWN |
Co-authored-by: Cursor <[email protected]>
|
READY FOR REVIEW |
Address review feedback by splitting adapted Link divergences into a dedicated file with mixed testExecution.include, moving SSR evidence into a Node-only tanstack-router-ssr project, and keeping harness setup tests in ordinary CI. Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
|
Parity ownership and Node SSR project feedback addressed; branch merged with main and Bugbot is clean on the current head. READY FOR REVIEW |
| "testRoot": "packages/react-router/tests", | ||
| "license": "MIT", | ||
| "integrity": "sha256:921d54033a68692c3528658b6300573743e6a09bb3c316e14cdc513b6bee6c31", | ||
| "verification": "recorded-unverified" |
There was a problem hiding this comment.
Required lanes never execute: recorded-unverified makes the generic job validate this manifest without run-required. The manifest says the tagged repository has runtime and type suites, yet it supplies neither pristine upstream lanes nor one-for-one adapted suite lanes; npm tarball omission does not waive fetching the canonical tag. The current required runtime, SSR, and type entries are therefore metadata-only despite the package status claiming execution.
There was a problem hiding this comment.
recorded-unverified makes the generic job validate this manifest without run-required … supplies neither pristine upstream lanes nor one-for-one adapted suite lanes; npm tarball omission does not waive fetching the canonical tag.
Acknowledged. Ownership cleanup on this head removes the metadata-only adapted divergence/SSR required lanes and updates UPSTREAM.md / status.json so the tarball omission is no longer treated as a waiver. upstreamSuites still correctly reports present for the pinned tag, and provenance.verification remains recorded-unverified until pristine-upstream + one-for-one adapted suite lanes are fetched from 58c005fcb1a0618ec8c5b96b2b5fe3ccab5736c5 and registered.
Needs a call (scope):
- Expand this PR to vendor the tagged
packages/react-router/teststree, land requiredpristine-upstream+ one-for-oneadapted-octane(and type) lanes, then flip toverifiedsorun-requiredexecutes them. - Keep this PR as differential-harness + ownership/currency cleanup, and land the pristine/adapted suite fetch in a follow-up.
Lean: (2) for this PR — the tagged suite is ~30 runtime files plus type tests and is a separate porting track from the differential harness already here. Happy to switch to (1) if you want the suite lanes in #513 before the next review pass.
Unpaired divergence and SSR framework-contract files stay in ordinary shards; only the differential project remains parity-owned. Drop the metadata-only adapted divergence/SSR lanes and stop treating the npm tarball omission as a waiver for fetching the canonical tag. Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
|
Thank you for your contribution! This pull request was incorporated into |

Summary\n\n- add the new React parity manifest, provenance record, and exhaustive test-classification ledger for TanStack Router\n- add fail-closed differential fixtures covering initial render, navigation, params, active states, and not-found behavior\n- add explicit adapted divergence, SSR/streaming, and public type-contract lanes\n- generalize shared classification and parity-check helpers for binding-level ledgers\n\n## Validation\n\n- [x] TanStack Router Vitest project: 16 files, 80 tests passed\n- [x] Runtime differential, adapted divergence, SSR, and type lanes passed\n- [x] Repository-wide React parity audit passed (stable: 5,345 cases; canary: 5,413 cases)\n- [x] Generated binding status, parity-gap, and CLI inventories are current\n- [x] Upstream provenance recorded against @tanstack/[email protected]\n\n## Risk / follow-ups\n\n- Upstream remains recorded-unverified because the published npm artifact omits the upstream test suites; the adapted package lanes are fail-closed and independently classified.\n- This PR intentionally does not change the runtime binding.\n\n## Provenance\n\n- [x] An agent produced this diff (agent-authored)\n
Note
Low Risk
Test, audit, and documentation only; router runtime code is unchanged. Main follow-up is upstream parity remaining recorded-unverified until full suite lanes land.
Overview
Introduces a React parity harness for
@octanejs/tanstack-router:react-parity.json,UPSTREAM.md,test-classifications.json, and an adapted-types lane, with provenance pinned to@tanstack/[email protected]andrecorded-unverifieduntil pristine upstream suite lanes exist.Differential tests run shared TSRX fixtures through Octane and compiled React (
@tanstack/react-router) for initial render, navigation, and not-found. Framework-contract tests cover plainrefprops, native link events, and separate devtools packaging. Differential setup fails closed via extractedfixture-compilerand harness unit tests.Vitest splits TanStack Router into ordinary conformance shards, a
react-paritydifferential project (with globalSetup), and a Node SSR project—SSR cases are explicitly Octane framework contracts, not React SSR oracles.Shared
binding-classifications-libreplaces hook-form–only classification verification;check.mjsvalidates any binding with a classification ledger. Binding status, CLI data, and docs refresh the SSR wording and verification date (2026-08-02).No changes to the runtime router binding.
Reviewed by Cursor Bugbot for commit 97538ab. Bugbot is set up for automated code reviews on this repo. Configure here.