()
| 32 | |
| 33 | it('should be able to reset `data`', async () => { |
| 34 | function Page() { |
| 35 | const { |
| 36 | mutate, |
| 37 | data = 'empty', |
| 38 | reset, |
| 39 | } = useMutation({ mutationFn: () => Promise.resolve('mutation') }) |
| 40 | |
| 41 | return ( |
| 42 | <div> |
| 43 | <h1>{data}</h1> |
| 44 | <button onClick={() => reset()}>reset</button> |
| 45 | <button onClick={() => mutate()}>mutate</button> |
| 46 | </div> |
| 47 | ) |
| 48 | } |
| 49 | |
| 50 | const { getByRole } = renderWithClient(queryClient, <Page />) |
| 51 |
nothing calls this directly
no test coverage detected
searching dependent graphs…