()
| 53 | }) |
| 54 | |
| 55 | const fetchData = () => Promise.resolve('data') |
| 56 | await testClient.prefetchQuery({ queryKey: key, queryFn: fetchData }) |
| 57 | const newQuery = testClient.getQueryCache().find({ queryKey: key }) |
| 58 | expect(newQuery?.options.gcTime).toBe(Infinity) |
nothing calls this directly
no outgoing calls
no test coverage detected