Skip to content

Fix ts tests generics#4107

Merged
katspaugh merged 1 commit intocodex/set-up-jest-and-add-unit-testsfrom
codex/fix-ts2344-and-ts2540-errors
May 28, 2025
Merged

Fix ts tests generics#4107
katspaugh merged 1 commit intocodex/set-up-jest-and-add-unit-testsfrom
codex/fix-ts2344-and-ts2540-errors

Conversation

@katspaugh
Copy link
Owner

Summary

  • fix generic event interface in tests
  • allow setting duration in Player test
  • polyfill browser APIs in tests to fix unit test environment
  • fix createElement tree rendering
  • update Timer.stop to remove all listeners
  • add GitHub action for unit tests

Testing

  • yarn test:unit

@cloudflare-workers-and-pages
Copy link

Deploying wavesurfer-js with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4132b33
Status:⚡️  Build in progress...

View logs

@katspaugh katspaugh merged commit cd6b459 into codex/set-up-jest-and-add-unit-tests May 28, 2025
5 of 6 checks passed
@katspaugh katspaugh deleted the codex/fix-ts2344-and-ts2540-errors branch May 28, 2025 20:08
katspaugh added a commit that referenced this pull request May 28, 2025
* Add additional unit tests

* Delete package-lock.json

* Update yarn.lock

* test: fix ts types (#4106)

* Fix unit tests and add GitHub action (#4107)

* yarn.lock
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