TanStackT
TanStack2y ago
2 replies
dry-scarlet

Testing a table that uses virtual with React Testing Library

I have a component that is using react-virtual and it works as expected in the UI but when testing I see that the getVirtualItems returns an empty array.
Can someone please provide an example for testing using Jest and/or RTL? I can't share code because it is confidential but I think my description is as clear as possible. Thanks!
Was this page helpful?