How can I create Jest tests using Howler #1649
Unanswered
txai-gomining
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I'm currently facing a lot of issues to properly work with Howler in my Jest tests. I tried to mock the Howler itself, but it's really problematic to do that, so I tried to use the Howler, but I'm always getting the ¨No codec support for selected audio sources.¨ error, as I can imagine that the ¨browser¨ simulated by Jest doesn't has the codecs that Howler uses.
Do you have any examples how to properly mock Howler in Jest tests or how to properly handle with these codec stuff that Howler needs to run while writing Jest tests?
Beta Was this translation helpful? Give feedback.
All reactions