Skip to content

Tests: add Jest and unit tests#4105

Merged
katspaugh merged 7 commits intomainfrom
codex/set-up-jest-and-add-unit-tests
May 28, 2025
Merged

Tests: add Jest and unit tests#4105
katspaugh merged 7 commits intomainfrom
codex/set-up-jest-and-add-unit-tests

Conversation

@katspaugh
Copy link
Owner

Summary

  • set up Jest with ts-jest and jsdom
  • add unit test script
  • provide tests for EventEmitter, Fetcher, DOM helpers
  • add more tests for BasePlugin, Timer, Player and draggable helper

Testing

  • npm run test:unit (fails: jest not found)

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented May 28, 2025

Deploying wavesurfer-js with  Cloudflare Pages  Cloudflare Pages

Latest commit: cd6b459
Status: ✅  Deploy successful!
Preview URL: https://364d93c7.wavesurfer-js.pages.dev
Branch Preview URL: https://codex-set-up-jest-and-add-un.wavesurfer-js.pages.dev

View logs

@katspaugh katspaugh changed the title Add Jest and unit tests Tests: add Jest and unit tests May 28, 2025
@katspaugh katspaugh merged commit 4759a3d into main May 28, 2025
5 of 6 checks passed
@katspaugh katspaugh deleted the codex/set-up-jest-and-add-unit-tests branch May 28, 2025 20:13
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