Skip to content

test: add unit tests for Vector/Spike marks (#171)#381

Merged
gka merged 1 commit intosvelteplot:mainfrom
ljodea:test/vector-spike-171-v2
Feb 16, 2026
Merged

test: add unit tests for Vector/Spike marks (#171)#381
gka merged 1 commit intosvelteplot:mainfrom
ljodea:test/vector-spike-171-v2

Conversation

@ljodea
Copy link
Copy Markdown
Collaborator

@ljodea ljodea commented Feb 16, 2026

Summary

  • Adds 8 unit tests for the Vector mark covering path rendering, shape geometry, transforms, styling (stroke/fill), all 3 shape variants (arrow, spike, arrow-filled), anchor behavior, and empty data
  • Adds 5 unit tests for the Spike mark covering path rendering, default spike shape, default/custom stroke styling, and empty data
  • Follows existing .test.svelte wrapper + .test.svelte.ts pattern

Replaces #380 (which included a duplicate Bollinger commit from the parent branch).

Closes #171

Test plan

  • bun run test src/tests/vector.test.svelte.ts src/tests/spike.test.svelte.ts — 13 tests pass
  • bun run test — full suite passes (480 tests, no regressions)

🤖 Generated with Claude Code

Add 13 tests covering Vector (8) and Spike (5) mark components:
- Rendering correct number of paths per datum
- Valid shape geometry (M/L path commands)
- Transform attributes (translate/rotate)
- Custom stroke/fill styling
- All three shape variants (arrow, spike, arrow-filled)
- Anchor option behavior (start vs middle)
- Default Spike styling (currentColor stroke)
- Empty data handling

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

netlify bot commented Feb 16, 2026

Deploy Preview for svelteplot ready!

Name Link
🔨 Latest commit 3e1c000
🔍 Latest deploy log https://app.netlify.com/projects/svelteplot/deploys/6992f4663811f90008a2aa26
😎 Deploy Preview https://deploy-preview-381--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 e017bf5 into svelteplot:main Feb 16, 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 Vector/Spike marks

2 participants