-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Segmentation Fault when rendering 'react-player/lazy' with Jest & React Testing Library #1391
Comments
Same problem here. |
Same here. |
Is anyone able to find the solution to this? |
Same here. My solution is to replace // Replace react-player/lazy with react-player
// Fix Segmentation Fault when using 'react-player/lazy' in tests
// Learn more: https://github.com/cookpete/react-player/issues/1391
jest.mock('react-player/lazy', () => {
return jest.requireActual('react-player');
}); |
Having the same issue. |
Be sure to search for your issue before opening a new one.
Current Behavior
Importing
ReactPlayer
fromreact-player/lazy
causes a segmentation fault when rendered with@testing-library/react
inside a Jest test.Importing from
react-player/vimeo
does not produce the same issue.Expected Behavior
:)
Steps to Reproduce
video.js
video.spec.js
results in:
Environment
The text was updated successfully, but these errors were encountered: