Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Figure out a way to test layouts that rely on onLayout callback #410

Closed
sarahscott opened this issue Dec 2, 2016 · 2 comments
Closed

Figure out a way to test layouts that rely on onLayout callback #410

sarahscott opened this issue Dec 2, 2016 · 2 comments

Comments

@sarahscott
Copy link
Contributor

See jestjs/jest#1708

@sarahscott
Copy link
Contributor Author

Would be nice if we had a simulation kind of thing like enzyme. I have found that it's easy to call onLayout in a test since it's just a prop but what we really need is a way to mock nativeEvent.

@sarahscott
Copy link
Contributor Author

See #409

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

No branches or pull requests

1 participant