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

Empty markup rendered using Jest and testing-library #204

Open
c0dester opened this issue Aug 16, 2021 · 2 comments
Open

Empty markup rendered using Jest and testing-library #204

c0dester opened this issue Aug 16, 2021 · 2 comments

Comments

@c0dester
Copy link

c0dester commented Aug 16, 2021

Hello!

I've tried to test my gallery component which is customized a bit, and I wasn't able to create correct snapshot with Jest and @testing-library/react. I was struggling and thinking that there's something wrong with my code, but finally I've created very simple reproduction repo that shows that there's something wrong with generating snapshots:

https://github.com/c0dester/react-photo-gallery-testing-library

Could you point me to the right direction with this?

@c0dester
Copy link
Author

Just noticed that same situation applies to server side rendering. I assume this lib uses document or window to order images correctly, but I'm wondering if it could render just plain layout on server side?

@doptster
Copy link

doptster commented Sep 8, 2022

same issue here, it seems this library not SSR app compatible

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

2 participants