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