Repository navigation
test(mobile): move the chat view's Stop cases into the turn-status tests - #29355
brennanb2025 wants to merge 3 commits into
Conversation
… file #24093 added a checkout-progress case to the real-Git compatibility suite, which took src/shared/git-binary-compatibility.test.ts to 820 counted lines, over the 800-line limit for test files. Every PR's static analysis now fails on that file. Move the four worktree lifecycle cases into a registered cases file, called at the same point so the shared repository sees the same order.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
#29099 took mobile/src/session/MobileNativeChatView.test.ts to 806 counted lines, over the 800-line test cap, so the phone app's lint fails on main. Move the four Stop and Stopping cases verbatim into MobileNativeChatView.turn-status.test.ts, which has the same setup, and put the listIds doc comment back above the function it describes.
# Conflicts: # src/shared/git-binary-compatibility.test.ts
Problem
Every PR's Mobile verify check is failing on main right now with one lint error in a file none of them touched:
Phone test files are capped at 800 counted lines (blank lines and comments excluded). #29099 (open each chat at its newest message) added a case to this file and took it to 806.
(This PR also covered the same failure in
src/shared/git-binary-compatibility.test.ts. #29357 fixed that one on main first, so that half is dropped and main's version kept.)Change
Test-only, with no behavior change. No test is removed or edited; cases only move.
The four Stop and "Stopping…" cases move verbatim from
MobileNativeChatView.test.tsintoMobileNativeChatView.turn-status.test.ts, which uses the same test setup (same mocked composer, render helpers and props). A doc comment forlistIds()had drifted above one of those cases, and it goes back above the function. The file drops to 878 lines, under the counted cap.