New rule no-sync-act
: discourages sync usage of act
#915
Labels
new rule
New rule to be included in the plugin
no-sync-act
: discourages sync usage of act
#915
Name for new rule
no-sync-act
Description of the new rule
As per https://react.dev/reference/react/act#await-act-async-actfn
sync usage of
act
is discouraged:Testing Library feature
act
Testing Library framework(s)
React
What category of rule is this?
Warns about a potential error
Optional: other category of rule
No response
Code examples
The new rule would fail on
and pass on
Anything else?
No response
Do you want to submit a pull request to make the new rule?
No
The text was updated successfully, but these errors were encountered: