Repository navigation
test(web): keep source-location acceptance setup within lint limits - #9023
1052326311 wants to merge 1 commit into
Conversation
[Low impact] This setup-only refactor appears safe to merge. SummaryExtracts fixture preparation and stdio MCP setup into two file-local helpers.
Reviews (1) · Last reviewed commit: "test(web): keep source-location acceptan..." · Reviewed by Greptile |
|
Closing this draft as superseded by the independent main repair in ec34109 ( I checked the exact current-main copy of The original branch and commit f901389 are preserved. This is a superseded, unmerged PR. |
Summary
Restore the static CI gate for the source-location acceptance test without removing assertions or raising lint limits. No separate issue: this is a reproduced
mainCI failure, also visible in #8999's static job.Problem and expected behavior
On
main@fe677f6cf9853fb12490dfb8ef23ccae3a551049,oxlint tests/acceptance/webSourceLocationCli.test.tsfails because the first async test is 175 lines against a hard limit of 150. The scenario should remain executable and meet the existing lint policy.Change and scope
Extract fixture preparation and stdio MCP connection setup into two file-local helpers. Preserve the symlink-ancestor manifest path, environment, client identity, cleanup
try/finally, timeouts and every assertion. No production code, lint configuration or test-discovery changes.Contract and boundary impact
tests/acceptance/webSourceLocationCli.test.ts; the existing CLI/MCP scenario remains the consumer.Expected effects below describe the existing test execution:
Evidence and regression coverage
Validation performed
npm run test:focused -- tests/acceptance/webSourceLocationCli.test.ts— 4 passed; runtime/artifact build succeeded.oxlint tests/acceptance/webSourceLocationCli.test.ts— passed.oxfmt --check tests/acceptance/webSourceLocationCli.test.ts— passed.npm run check— passed: typecheck, lint, format, Knip, metadata, architecture guards, production reachability and typed lint; existing advisory warnings remain.git diff --check— passed.Final verification used the declared Node 24.22.1 and npm 11.16.0 on macOS arm64, with all tracked top-level directories present. Both the complete
npm run check(including typed lint across 6,430 files) and all four acceptance tests passed again with that toolchain. Earlier successful runs used npm 11.19.1. An initial sparse-checkout run failed before test behavior because the Swift process-ownership helper source was absent; addingbridge/restored that prerequisite. The first full static-check attempt reportedlint-stagedunused because.husky/was omitted; the checkout was corrected before the final check. Neither setup failure is counted as a candidate pass.Compatibility, safety, and release
Author readiness
Human owner: @1052326311
Before merge
type(scope): outcome.