Mahendra Hirapra
Results
1
comments of
Mahendra Hirapra
Please try this with @testing-library/react-hooks ``` it('test', async () => { const { result, waitForNextUpdate } = renderHook(() => useHook()); act(() => { result.current.fetch(); }); expect(result.current.state).toBe(undefined); await waitForNextUpdate(); expect(result.current.state).toBe('GOOD'); //or...