fix: Ensure `act` is not `any` when `React.act` is not declared by eps1lon · Pull Request #1323 · testing-library/react-testing-library

Tested in eps1lon/rtl-deprecated-act-repro@af593bd Required for https://github.com/vercel/front/pull/32113