Replies: 1 comment 4 replies
-
Hey @fabiendem! Thanks for starting this conversation. I didn't know you could import I don't think there is a way for you with the current plugin settings available to force the Since I'm not that experienced with RNTL, I'd like to know if there is a particular reason someone would import it from Although it would be interesting to think about reporting |
Beta Was this translation helpful? Give feedback.
-
Hi,
I believe this is not really a bug so opening a discussion instead:
In my project, I have the
no-unnecessary-act
rule enabled: https://github.com/testing-library/eslint-plugin-testing-library/blob/main/docs/rules/no-unnecessary-act.mdNow, if I import act this way:
and do:
it will get reported by ESLint as unnecessary act, as expected for fireEvent.
But if I import act this way:
and do:
it won't be reported by ESLint.
Now my question is...
import
?Can I tweak VSCode to import the correct
act
most of the time.If anyone has any tip here, please help 😄
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions