Skip to content

test: add unit tests for Pointer mark (#167)#374

Merged
gka merged 3 commits into
svelteplot:mainfrom
ljodea:test/pointer-167
Feb 17, 2026
Merged

test: add unit tests for Pointer mark (#167)#374
gka merged 3 commits into
svelteplot:mainfrom
ljodea:test/pointer-167

Conversation

@ljodea

@ljodea ljodea commented Feb 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds 9 unit tests for the Pointer interactive mark covering structural rendering, core selection behavior, maxDistance filtering, 1D x-only mode, tolerance-based multi-point selection, data integrity, and empty data edge case
  • Tests use PointerEvent dispatch on .plot-body with deterministic coordinate math (100x100 plot, margin=0, domain [0,100])

Test plan

  • All 9 new tests pass
  • Full test suite passes (460 tests)
  • Lint clean

Closes #167

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@netlify

netlify Bot commented Feb 15, 2026

Copy link
Copy Markdown

Deploy Preview for svelteplot ready!

Name Link
🔨 Latest commit ea5646a
🔍 Latest deploy log https://app.netlify.com/projects/svelteplot/deploys/6993d94ddbc6130008265e89
😎 Deploy Preview https://deploy-preview-374--svelteplot.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@gka gka merged commit 0379d5b into svelteplot:main Feb 17, 2026
8 checks passed
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.

Add unit tests for Pointer mark

2 participants