Remove redundant act
calls in unit tests once a clear RHF workaround or fix exists
#67
Labels
bug
Something isn't working
Describe the bug
As noted in this discussion, RHF causes extra re-renders which are not captured in the implicit User Event act. In order to avoid large amounts of console output during tests, an extra act wrapper is required:
To Reproduce
Steps to reproduce the behavior:
await user.doSomething
Expected behavior
User events should not need a wrapping act block.
Even waiting for a checked element to be checked before proceeding is not enough.
Code Snippet
Current workaround:
or
Correct syntax
or
The text was updated successfully, but these errors were encountered: