Skip to content

test(mobile): split MobileNativeChatView.test.ts under the max-lines limit - #29368

Merged
nwparker merged 1 commit into
mainfrom
nwparker/split-mobile-native-chat-view-test
Oct 16, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/split-mobile-native-chat-view-test

Conversation

@nwparker

@nwparker nwparker commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​812 $\color{#cf222e}{\Huge{\mathbf{−}}}$​939 $\color{#cf222e}{\Huge{\mathbf{−}}}$​127
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​236 $\color{#cf222e}{\Huge{\mathbf{−}}}$​6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​230

Main's lint has been failing since e9c7736 (#29099) because mobile/src/session/MobileNativeChatView.test.ts is 806 counted lines, over the 800 max-lines limit, and that blocks every PR. This PR splits the file into six feature files (stop control, failure banners, rows and streaming bubble, composer lock and prompt cards, tail-follow, history paging) plus one shared fixture module for the mocks and render helpers. It is a pure move: the 36 test cases and their assertions are unchanged, and no lint rule or max-lines limit was changed or disabled.

…limit

Pure move: the 36 test cases and their assertions are unchanged, now in six feature files.
Shared mocks and render helpers live in MobileNativeChatView.harness.test-fixture.ts. The only
non-move edits are typing and formatting: the harness adds getComposerEditGeneration to its
default props (a required prop the fixture never passed), tests use hostType(node) for tag
comparisons, and the typecheck baseline and reliability gate paths drop the removed file.
@nwparker
nwparker merged commit 330fd55 into main Oct 16, 2026
5 checks passed
nwparker added a commit that referenced this pull request Oct 16, 2026
…dule mocks (#29378)

#29368 moved these hoisted mocks from the test file into a shared fixture, which the
anti-slop no-module-mocking rule only exempts for *.test files. Scope the same
file-level exemption the RPC test fixture already uses.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant