Create / improve component tests for components that use AudioContext #36
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
testing
issues relating to unit, component, or E2E testing
view: music
relating to the music view
wontfix
This will not be worked on
Summary
Testing components that use
AudioContext
almost invariably throw errors becauseAudioContext
is not emulated byjsdom
. There are ways around it (such as usingstandardized-audio-context-mock
) but they don't cover all use cases, and I would need to manually mock everyAudioContext
function. Parking this for now as the basic testing of these components can be covered in E2E testing and it's not a good use of time to invest in properly creating a test suite for these components (which are likely to change) at this time.What needs to be done?
AudioContext
manually, or find a library that does that more comprehensibly thanstandardized-audio-context-mock
Updates
The text was updated successfully, but these errors were encountered: