Closed PReichetanz closed 1 year ago
The v13 of @testing-library/react throws a false error regarding the act() function when using the userEvent within tests.
v13
act()
userEvent
v14 fixes this issue.
v14
Read our discussion in Slack here.
I checked v14.0.0 in react-component-testing_demo-start before applying these changes to the entire repository.
v14.0.0
npm install
package-lock.json
Rationale
The
v13
of @testing-library/react throws a false error regarding theact()
function when using theuserEvent
within tests.v14
fixes this issue.Read our discussion in Slack here.
I checked
v14.0.0
in react-component-testing_demo-start before applying these changes to the entire repository.Changes
npm install
to update rootpackage-lock.json