Test: keep React 19 coverage out of the React 18 lane - #4635
Conversation
|
+ci-status |
|
+ci-run-hosted |
CI StatusHead SHA: Only the required gate is active unless hosted CI is requested. |
Hosted CI RequestedTriggered 9 workflow(s) for View progress in the Actions tab. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughThe Jest scripts now route the React 19-only client test through the streaming suite instead of the non-RSC suite. Suite-selection validation separately tracks both suites and tests that invalid React 19 test selection raises an error. ChangesJest suite selection
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThis PR updates the Pro Jest suite routing for a React 19-only client test. The main changes are:
Confidence Score: 4/5The changed test routing needs a fix for the client test environment before merging.
packages/react-on-rails-pro/package.json; packages/react-on-rails-pro/scripts/check-jest-suite-selection.mjs Important Files Changed
Reviews (1): Last reviewed commit: "Keep React 19 tests out of the React 18 ..." | Re-trigger Greptile |
ReviewOverview: This is a bounded, well-targeted follow-up to #4622. It moves Correctness
Test coverage: The new unit test ( Style/maintenance: Risk: Low. Scope is limited to test routing/tooling, no runtime/shipped code is touched, and the "no changelog entry" call is correct per this repo's changelog guidelines (test-only changes are excluded). No blocking issues found. |
size-limit report 📦
|
Review disposition — head
|
Completed-batch post-merge audit — PASS
No follow-up remains. |
…rk-audit-gaps * origin/main: Test: keep React 19 coverage out of the React 18 lane (#4635)
…t-policy * origin/main: (33 commits) Release: add auditable accelerated RC async gates (#4669) Release: handle optional required-check metadata (#4685) Release: forward-port post-pull prerelease guard (#4680) Forward-port stable RSC 19.2.1 to main (#4672) Forward-port Pro license metadata to main (#4668) Docs: clarify local benchmark workflow (#4665) Fix Hacker News demo-fleet smoke path (#4664) Release: reuse verified ShakaPerf pre-run evidence (#4662) Release: require strict HEAD evidence before retry guidance (#4661) Fix: support React 18 non-RSC streaming (#4658) Docs: compare Next.js with Rails async-props streaming (#4651) Docs: add reusable demo fleet RC update prompt (#4649) CI: run Pro compatibility smokes in hosted tests (#4656) Fix ambiguous prerelease retries (#4654) Test: add packaged Pro smokes for React 16 and 17 (#4652) docs: clarify release version ownership and RSC promotion (#4650) [Pro] Keep react-on-rails-rsc out of non-RSC entry graphs (fixes React 18 builds on rc.9) (#4641) ci: make benchmark proof gates replayable (#4626) Test: keep React 19 coverage out of the React 18 lane (#4635) Redact prerender secrets and harden service checks (#4624) ... # Conflicts: # internal/contributor-info/release-train-runbook.md
…taller * origin/main: (33 commits) Release: add auditable accelerated RC async gates (#4669) Release: handle optional required-check metadata (#4685) Release: forward-port post-pull prerelease guard (#4680) Forward-port stable RSC 19.2.1 to main (#4672) Forward-port Pro license metadata to main (#4668) Docs: clarify local benchmark workflow (#4665) Fix Hacker News demo-fleet smoke path (#4664) Release: reuse verified ShakaPerf pre-run evidence (#4662) Release: require strict HEAD evidence before retry guidance (#4661) Fix: support React 18 non-RSC streaming (#4658) Docs: compare Next.js with Rails async-props streaming (#4651) Docs: add reusable demo fleet RC update prompt (#4649) CI: run Pro compatibility smokes in hosted tests (#4656) Fix ambiguous prerelease retries (#4654) Test: add packaged Pro smokes for React 16 and 17 (#4652) docs: clarify release version ownership and RSC promotion (#4650) [Pro] Keep react-on-rails-rsc out of non-RSC entry graphs (fixes React 18 builds on rc.9) (#4641) ci: make benchmark proof gates replayable (#4626) Test: keep React 19 coverage out of the React 18 lane (#4635) Redact prerender secrets and harden service checks (#4624) ...
Why
The post-merge audit of #4622 reproduced one React 18 regression in the repaired Jest suite selection.
registerServerComponent.client.test.jsxrequiresReact.use, but the file had been moved intotest:non-rsc, which is the package's React-18-compatible lane. With React 18.3.1 it failed during module loading before the test's Node guard could run.This is a bounded closeout correction for #4622 and #4565.
What changed
registerServerComponent.client.test.jsxout oftest:non-rsc.test:non-rscwhile still passing the ordinary orphan check.Verification
registerServerComponent.client.test.jsxfailed at module load withReact.use is not defined.test:non-rsc --listTestsexcludes that file andtest:streamingexits through the React-19 version guard.No changelog entry: this only corrects maintainer test routing and does not change shipped runtime behavior.
Summary by CodeRabbit