()
| 36 | let succeed = false |
| 37 | |
| 38 | function Page() { |
| 39 | const { data } = useQuery({ |
| 40 | queryKey: key, |
| 41 | queryFn: () => |
| 42 | sleep(10).then(() => { |
| 43 | if (!succeed) throw new Error('Error') |
| 44 | return 'data' |
| 45 | }), |
| 46 | retry: false, |
| 47 | throwOnError: true, |
| 48 | }) |
| 49 | |
| 50 | return <div>{data}</div> |
| 51 | } |
| 52 | |
| 53 | const rendered = renderWithClient( |
| 54 | queryClient, |
nothing calls this directly
no test coverage detected
searching dependent graphs…