({ value }: { value: string })
| 488 | } |
| 489 | |
| 490 | function Component({ value }: { value: string }) { |
| 491 | const state = useQuery({ |
| 492 | queryKey: key, |
| 493 | queryFn: () => sleep(10).then(() => 'data: ' + value), |
| 494 | |
| 495 | gcTime: 0, |
| 496 | notifyOnChangeProps: 'all', |
| 497 | }) |
| 498 | states.push(state) |
| 499 | return ( |
| 500 | <div> |
| 501 | <div>{state.data}</div> |
| 502 | </div> |
| 503 | ) |
| 504 | } |
| 505 | |
| 506 | const rendered = renderWithClient(queryClient, <Page />) |
| 507 |
no test coverage detected