DEV Community

Discussion on: Writing unit tests with React, Typescript, and react-testing-library

Collapse
wojciechmatuszewski profile image
Wojciech Matuszewski Author • Edited on

In theory - yes, but react-testing-library is already doing that for you (plus some other stuff)

github.com/testing-library/react-t...

(act is used within render and render is used within rerender)