Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResizeObserver errors out in the test environment. #1050

Open
airinterface opened this issue Jan 14, 2025 · 0 comments
Open

ResizeObserver errors out in the test environment. #1050

airinterface opened this issue Jan 14, 2025 · 0 comments

Comments

@airinterface
Copy link

Just by including MediaPlay... from 'media-chrome/react'
test fails.

   ● Test suite failed to run
 
     TypeError: import_server_safe_globals.globalThis.ResizeObserver is not a constructor
 
       14 |   MediaSeekBackwardButton,
       15 |   MediaSeekForwardButton,
     > 16 |   MediaPlaybackRateButton,
          |                 ^
       17 |   MediaDurationDisplay,
       18 | } from 'media-chrome/react';

Reproducible.
In add any React Component that include this.
Test this with jest, it fails with above error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant