You would do the same thing except after renderHook():
await act(() => {
const [myMutation] = result.current;
myMutation(/* your args */);
});
expect(result.current[1]).toEqual({
// your object
});You can import act() from:
import { act } from '@testing-library/react-native';