Skip to content

test(Renderer): add comprehensive unit tests#4117

Merged
katspaugh merged 1 commit intomainfrom
codex/add-unit-tests-for-renderer.ts-methods
Jun 24, 2025
Merged

test(Renderer): add comprehensive unit tests#4117
katspaugh merged 1 commit intomainfrom
codex/add-unit-tests-for-renderer.ts-methods

Conversation

@katspaugh
Copy link
Owner

Short description

Add jest unit tests for renderer.ts covering all public and private methods.

Implementation details

  • Created renderer.test.ts with canvas stubs so jsdom can execute rendering logic
  • Tests exercise container resolution, waveform rendering helpers, scroll helpers and image export

How to test it

  • yarn test:unit

Checklist

  • yarn lint (fails: Invalid option --ext)
  • yarn test:unit

https://chatgpt.com/codex/tasks/task_b_685aa5d74f3c832f94933549bd4e8f6f

@cloudflare-workers-and-pages
Copy link

Deploying wavesurfer-js with  Cloudflare Pages  Cloudflare Pages

Latest commit: d1cbc40
Status:⚡️  Build in progress...

View logs

@katspaugh katspaugh merged commit cd47d97 into main Jun 24, 2025
6 of 7 checks passed
@katspaugh katspaugh deleted the codex/add-unit-tests-for-renderer.ts-methods branch June 24, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant