Skip to content

Our tests are broken when using a virtualizer since a few versions #633

Closed Answered by piecyk
Ex4l asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, the issue is that we changed how the virtualizer behaves when scrolling element has no size, as in test jsdom will return 0 that's why no items are returned. Checkout the PR #598 for more details and reason behind this change.

@Ex4l for unit test you can mock the getBoundingClientRect for the scroller element.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Ex4l
Comment options

Answer selected by Ex4l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants