mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
f96d782d26
### Summary Currently `render` and `fireEvent` are wrapped in `act` to support hooks. This pull request wraps the update call in `act` to support testing component updates (e.g. prop changes). ### Test plan * I have added a test for update in `__tests__/act.test.js`. * A useEffect hook should run again on `update` calls (if the hook dependency array is satisfied).