()
| 61 | const key = queryKey() |
| 62 | |
| 63 | function Page() { |
| 64 | const state = useQuery(() => ({ |
| 65 | queryKey: key, |
| 66 | queryFn: () => sleep(10).then(() => 'test'), |
| 67 | })) |
| 68 | |
| 69 | return ( |
| 70 | <div> |
| 71 | <h1>{state.data ?? 'default'}</h1> |
| 72 | </div> |
| 73 | ) |
| 74 | } |
| 75 | |
| 76 | const rendered = renderWithClient(queryClient, () => <Page />) |
| 77 |
nothing calls this directly
no test coverage detected