Skip to content

chore(core): cover joystick drag tracking - #484

Merged
coryrylan merged 1 commit into
mainfrom
topic/upkeep/coverage/joystick-drag
Oct 30, 2026
Merged

coryrylan merged 1 commit into
mainfrom
topic/upkeep/coverage/joystick-drag

Conversation

@cursor

@cursor cursor Bot commented Oct 30, 2026

Copy link
Copy Markdown

Selected task

Coverage for projects/core/src/joystick/joystick.ts.

Selector rationale: "5 uncovered lines, 97.89% lines and 89.18% branches, the smallest gap below the 90% threshold."

Measurement

Metric Before After
Lines 233/238 (97.89%) 238/238 (100%)
Branches 231/259 (89.18%) 235/259 (90.73%)
Functions 27/28 (96.42%) 28/28 (100%)

The new test drags the pointer across the surface and checks the vector before release. That exercises the drag-gesture handler unit tests had not reached. No other file's coverage decreased.

No public API changed.

Left alone

The remaining 24 branches are defensive or uncommon paths: server-side value hydration, non-custom gesture events, gesture input that is not a matching pointer, a drag that is not the active pointer, keyboard input after a start listener clears the session, a visibility event while the document is shown, an absent value during a constraint change, non-string and empty form state, announcement and translation fallbacks, pointer-capture release, a zero-size travel box, a rejected pointer claim, keyboard movement from an absent value, an invalid keyboard step, arrow keys during a pointer drag, and the vertical axis lock.

Validation

  • projects/core: lint, test (2371 passed, 1 skipped), test:types, test:axe, test:ssr, test:lighthouse (84 passed), test:visual
  • root pnpm run ci passed
  • git diff --check clean

test:types, test:axe, test:ssr, and test:visual were wireit cache hits. This change is limited to the unit test, and those tasks do not take that file as an input.

Open in Web View Automation 

Adds a unit test that moves the pointer across the joystick surface
before release. Line coverage for joystick.ts rises from 233/238
(97.89%) to 238/238 (100%), and branch coverage rises from 231/259
(89.18%) to 235/259 (90.73%). No behavior change.

Co-authored-by: Cory Rylan  <coryrylan@users.noreply.github.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@cursor
cursor Bot marked this pull request as ready for review October 30, 2026 12:22
@coryrylan coryrylan added the upkeep label Oct 30, 2026 — with Cursor
@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage/vitest

main 3908906 topic/upkeep/coverag... 62e4679 +/-
99% 99% 0%
View coverage of the 1 most impacted file.
File main 3908906 topic/upkeep/coverag... 62e4679 +/-
projects/core/s...ick/joystick.ts 98% 100% +2%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

@coryrylan
coryrylan merged commit ab3068c into main Oct 30, 2026
18 checks passed
@coryrylan
coryrylan deleted the topic/upkeep/coverage/joystick-drag branch October 30, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants