({ value }: { value: string })
| 459 | } |
| 460 | |
| 461 | function Component({ value }: { value: string }) { |
| 462 | const state = useQuery({ |
| 463 | queryKey: key, |
| 464 | queryFn: () => sleep(10).then(() => 'data: ' + value), |
| 465 | |
| 466 | gcTime: 0, |
| 467 | notifyOnChangeProps: 'all', |
| 468 | }) |
| 469 | states.push(state) |
| 470 | return ( |
| 471 | <div> |
| 472 | <div>{state.data}</div> |
| 473 | </div> |
| 474 | ) |
| 475 | } |
| 476 | |
| 477 | const rendered = renderWithClient(queryClient, <Page />) |
| 478 |
no test coverage detected