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