Hi,
I recently upgraded react-scripts to v5, which added bunch of breaking changes, including to jest. My useFakeTimers no longer work. When I run my tests it stops running it throws the error "Exceeded timeout of 10000". If add timeout to longer time, my test just hangs. I tried to upgrade jest to 29 but now I am getting "ReferenceError: TextEncoder is not defined". Does anyone have similar issues? Seems breaking happens for jest27 just like documentation mentions? I tried to downgrade to previous jest version but my fakeTimers still not working. Can anyone help to figure it out?
Hi,
I recently upgraded react-scripts to v5, which added bunch of breaking changes, including to jest. My useFakeTimers no longer work. When I run my tests it stops running it throws the error "Exceeded timeout of 10000". If add timeout to longer time, my test just hangs. I tried to upgrade jest to 29 but now I am getting "ReferenceError: TextEncoder is not defined". Does anyone have similar issues? Seems breaking happens for jest27 just like documentation mentions? I tried to downgrade to previous jest version but my fakeTimers still not working. Can anyone help to figure it out?