Jan 8, 2024
You would do the same thing except after renderHook():
```js
await act(() => {
const [myMutation] = result.current;
myMutation(/* your args */);
});
expect(result.current[1]).toEqual({
// your object
});
```
You can import act() from:
```js
import { act } from '@testing-library/react-native';
```
See https://gist.github.com/remarkablemark/48bd1f41b0144bb0b986b1a33d0186fb