testing-library / react-testing-library

🐐 Simple and complete React DOM testing utilities that encourage good testing practices.
https://testing-library.com/react
MIT License
18.84k stars 1.09k forks source link

fix: Ensure `act` is not `any` when `React.act` is not declared #1323

Closed eps1lon closed 2 months ago

eps1lon commented 2 months ago

Tested in https://github.com/eps1lon/rtl-deprecated-act-repro/commit/af593bdcf9296ded91df39ba803cfc09b67fd691

Required for https://github.com/vercel/front/pull/32113

codesandbox-ci[bot] commented 2 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit ff69ebfe49c7fef926dd36c758715c636715ff23:

Sandbox Source
react-testing-library-examples Configuration