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
Well, it actually works fine out of the box for our project, just some checks are missing which is anyway normal for a linter as there's always room for improvement :)
Or am I missing something important that is required to declare React Native support?
What rule do you want to change?
prefer-user-event
Does this change cause the rule to produce more or fewer warnings?
More warnings
How will the change be implemented?
Add more fireEvent -> userEvent mappings.
React Native Testing Library has its own fireEvent function and the same idea of proposing to use userEvent if possible.
According to the docs, it's recommended to use:
press
instead offireEvent.press
type
instead offireEvent.changeText
scrollTo
instead offireEvent.scroll
Example code
How does the current rule affect the code?
It doesn't suggest any changes to
fireEvent
calls for React Native projects.How will the new rule affect the code?
It'll suggest to use User Event as per the docs.
Anything else?
No response
Do you want to submit a pull request to change the rule?
Yes
The text was updated successfully, but these errors were encountered: