Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

Fix checking of scrollTo() #163

Closed
wants to merge 1 commit into from
Closed

Conversation

hakoniemi
Copy link

This error occurs with Jest and tests won't pass.

This error occurs with Jest and tests won't pass.
@satya164
Copy link
Owner

Can you file a bug report in React Native's repo? This is a bug in jest's React Native preset. I don't want to add this check because it just suppresses the issue. The tests should behave the same as actual code.

@satya164 satya164 closed this Mar 19, 2017
@hakoniemi
Copy link
Author

Ok, thanks for reply. I examined a little and this really is a generic issue on Jest. Both ListView and ScrollView needs to be mocked in order to run the tests properly.

facebook/react-native#11659 (comment)

@alvaromb
Copy link

I've just opened a bug in the react-native repo facebook/react-native#13034

@alvaromb
Copy link

PR: facebook/react-native#13048

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants