react-photo-gallery icon indicating copy to clipboard operation
react-photo-gallery copied to clipboard

Empty markup rendered using Jest and testing-library

Open c0dester opened this issue 3 years ago • 2 comments

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 avatar Aug 16 '21 14:08 c0dester

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?

c0dester avatar Aug 17 '21 06:08 c0dester

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

doptster avatar Sep 08 '22 02:09 doptster