You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see the infamous Warning: You called act(async () => ...) without await. after a fresh clone and install checking out the reactnavigation example.
Expected behavior
No warnings. I thought react-native-testing-library is supposed to wrap all async actions in act already? I guess and use await
Steps to Reproduce
Clone this repository: git clone https://github.com/callstack/react-native-testing-library.git
Move into the proper example: cd react-native-testing-library/examples/reactnavigation
Install packages: npm install (You need npm install --legacy-peer-deps if you are using a newer version of Node)
Run tests: npm run test
See warnings in test output:
console.error
Warning: You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);