You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.
I want to be able to fire some RN specific events -- namely Linking and BackButton. In the past I've mocked these out with an imperative API similar to fireEvent, I thought it would make a nice addition to the library, as I'm not sure it's possible at the moment
Suggested implementation:
Something to the effect of fireEvent.backButton() and fireEvent.linkChanged('url') would be the desired end result
The text was updated successfully, but these errors were encountered:
Sorry I took a while to think about this... I'd be open to seeing a PR to implement some of these mocks, but I think we'd have to be really careful about which ones we make to be sure we're sticking to the guiding principles of testing library and not mocking things that enable testing implementation details.
If you'd like, you can open a RFC PR for the feature, I'd love to see it! Otherwise I'm going to go ahead and close this for housekeeping purposes, but note that if anyone wants to give this a try I'm open to it. I think the natural place to include it is in the jest preset.
Describe the feature you'd like:
I want to be able to fire some RN specific events -- namely
Linking
andBackButton
. In the past I've mocked these out with an imperative API similar to fireEvent, I thought it would make a nice addition to the library, as I'm not sure it's possible at the momentSuggested implementation:
Something to the effect of
fireEvent.backButton()
andfireEvent.linkChanged('url')
would be the desired end resultThe text was updated successfully, but these errors were encountered: