Mocking scrollToIndex with jest
Since the Virtualizer is getting compiled to a function on the build output,
What would then be the best way to check that
jest.spyOn(Virtualizer.prototype, 'scrollToIndex') will not workWhat would then be the best way to check that
scrollToIndex is called with the correct value within a test?