()
| 60 | }) |
| 61 | |
| 62 | const fetchData = () => Promise.resolve('data') |
| 63 | await testClient.prefetchQuery({ queryKey: key, queryFn: fetchData }) |
| 64 | const newQuery = testClient.getQueryCache().find({ queryKey: key }) |
| 65 | expect(newQuery?.options.gcTime).toBe(Infinity) |
nothing calls this directly
no outgoing calls
no test coverage detected