Repository navigation
Conversation
…ax-lines The fake connector, connection, pairing and distro constants move unchanged to wsl-host-service.test-fixture.ts; the test file drops from 828 to under 800.
|
No actionable comments were generated in the recent review.
|
|
Superseded by #34132, which landed the same max-lines split first. |
ELI5
A test file grew past the line limit after two PRs landed around the same time, which turned main's lint red. Its shared test fakes now live in their own file. Nothing behaves differently.
What Changed
src/main/wsl/wsl-host-service.test.tswas 828 lines against an 800 cap after #33839 and #33147 crossed. Its fake WSL connector (makeConnector),connection,pairingand theKEY/UBUNTUfixtures move unchanged intowsl-host-service.test-fixture.ts, and the test imports them. The file has a single describe block, so moving its shared fakes is the cohesive seam. There are no lint-disable comments.Why
Main's lint gate fails on max-lines, which blocks every PR.
Linked Issue
N/A, main lint fix.
Visual Proof
N/A. Test-only move.
Testing
oxlint is clean on both files, and
pnpm tcpasses.wsl-host-service.test.tspasses all 40 tests, with the same 39it/it.eachcases as before.I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
Agent skill upstream boundary
Notes
Test-only move, so there's no platform, SSH, mobile or compatibility impact.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)